Craig Rodrigues b4b5bf359b In nmount(), if MNT_ROOT is in the mount flags, filter it
out instead of returning an error.
(1)  This makes the behavior consistent with mount(2).
(2)  This makes update mounts on the root file system work properly.
(3)  The explicit checks for MNT_ROOTFS in src/sbin/fsck_ffs/main.c
     and src/usr.sbin/mountd/mountd.c which were put in to
     eliminate errors during update mounts on the root file system
     can be removed.

The only place were MNT_ROOTFS can be validly set
is inside the kernel, i.e. with vfs_mountroot_try().

Reviewed by:	phk
MFC after:	3 days
2007-10-27 15:59:18 +00:00
..
2007-10-27 15:31:50 +00:00
2007-10-16 17:52:59 +00:00
2007-10-16 10:54:55 +00:00
2007-10-19 20:09:58 +00:00
2007-10-26 13:38:00 +00:00
2007-10-23 00:52:25 +00:00