cvs commit: src/sys/nfsclient nfs_vfsops.c
Dag-Erling Smorgrav
des at FreeBSD.org
Wed Apr 27 07:46:02 PDT 2005
des 2005-04-27 14:46:02 UTC
FreeBSD src repository
Modified files:
sys/nfsclient nfs_vfsops.c
Log:
When NFS was converted to the new mount syscall, code was written that sets
the MNT_RDONLY flag if the "ro" option was passed in from userland, and
clears it otherwise. In the diskless case, the MNT_RDONLY flag is already
set when this code is reached, but there are no mount options, so it was
incorrectly cleared. Change the logic so the MNT_RDONLY flag is set if the
"ro" option was specified, and left alone otherwise.
Note that the NFS code will still happily let you mount a filesystem RW
even if the server exports it RO. I'm not sure how to fix that.
Revision Changes Path
1.173 +1 -3 src/sys/nfsclient/nfs_vfsops.c
More information about the cvs-src
mailing list