conf/79715: MNT_NODEV should be removed from sys/mount.h
ezk at cs.sunysb.edu
Sat Apr 9 09:00:50 PDT 2005
>Synopsis: MNT_NODEV should be removed from sys/mount.h
>Arrival-Date: Sat Apr 09 16:00:49 GMT 2005
>Originator: Erez Zadok
Stony Brook University
FreeBSD a-freebsd6.fsl.cs.sunysb.edu 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 (www.am-utils.org). 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 obsecurity.org>.
More information about the freebsd-bugs