cvs commit: src/sbin/mount mntopts.h mount.8 mount.c src/sbin/mount_std mount_std.8

Poul-Henning Kamp phk at phk.freebsd.dk
Tue Nov 30 13:23:07 PST 2004


In message <20041130.142111.84752258.imp at bsdimp.com>, "M. Warner Losh" writes:
>In message: <54142.1101843659 at critter.freebsd.dk>
>            "Poul-Henning Kamp" <phk at phk.freebsd.dk> writes:
>: Most operations on MNT_* are "bitwise OR" and a zero is perfectly OK.
>
>if ((mntopt & MNT_DEV) == MNT_DEV)
>
>fails.

As it should, that is not how you test a bitmap:

	if (mntopt & MNT_DEV)

works.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the cvs-all mailing list