conf/79715: MNT_NODEV should be removed from sys/mount.h

Erez Zadok ezk at
Sat Apr 9 09:00:50 PDT 2005

>Number:         79715
>Category:       conf
>Synopsis:       MNT_NODEV should be removed from sys/mount.h
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 09 16:00:49 GMT 2005
>Originator:     Erez Zadok
>Release:        6.0
Stony Brook University
FreeBSD 6.0-CURRENT-SNAP001 FreeBSD 6.0-CURRENT-SNAP001 #0: Fri Feb  4 22:20:07 UTC 2005     root at x64.samsco.home:/usr/obj/usr/src/sys/GENERIC  i386

I maintain am-utils (  Users reported some problems to me, which I tracked down to a depracated definition of MNT_NODEV in sys/mount.h.  It was left there, but reset to 0:

#define MNT_NODEV       0               /* Deprecated option */

This is incompatible with systems which use autoconf, because they "autodetect" that MNT_NODEV exists, and are happy to say that the "nodev" mount option exists.  Am-utils gets confused.  While I was able to work around this issue in am-utils-6.1-rc1, I think it is simply best to remove obsolste defintiion from code and let people fix their code properly: leaving them there but changing their values is causing worse confusion.

I filled out this PR at the reques of Kris Kennaway <kris at>.


More information about the freebsd-bugs mailing list