Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Nov 2004 22:22:59 +0100
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        cvs-all@freebsd.org
Subject:   Re: cvs commit: src/sbin/mount mntopts.h mount.8 mount.c src/sbin/mount_std mount_std.8 
Message-ID:  <56308.1101849779@critter.freebsd.dk>
In-Reply-To: Your message of "Tue, 30 Nov 2004 14:21:11 MST." <20041130.142111.84752258.imp@bsdimp.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20041130.142111.84752258.imp@bsdimp.com>, "M. Warner Losh" writes:
>In message: <54142.1101843659@critter.freebsd.dk>
>            "Poul-Henning Kamp" <phk@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@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56308.1101849779>