aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/mountd
diff options
context:
space:
mode:
authorCraig Rodrigues <rodrigc@FreeBSD.org>2008-03-05 07:55:07 +0000
committerCraig Rodrigues <rodrigc@FreeBSD.org>2008-03-05 07:55:07 +0000
commit55dd132740ba58c37438c5aca3dc0427edbf39ed (patch)
tree895e29b7afeb4327324294f34aa63e5c493f58e2 /usr.sbin/mountd
parent1cb51125aa549b973836791e59c408473eab45a2 (diff)
downloadsrc-55dd132740ba58c37438c5aca3dc0427edbf39ed.tar.gz
src-55dd132740ba58c37438c5aca3dc0427edbf39ed.zip
Remove hacks which filter out MNT_ROOTFS.
They are no longer needed now that we filter out MNT_ROOTFS inside the nmount() call in revision 1.267 of vfs_mount.c. Reviewed by: rink
Notes
Notes: svn path=/head/; revision=176819
Diffstat (limited to 'usr.sbin/mountd')
-rw-r--r--usr.sbin/mountd/mountd.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c
index 11057c39b8ee..fbcb4ec61cd9 100644
--- a/usr.sbin/mountd/mountd.c
+++ b/usr.sbin/mountd/mountd.c
@@ -1432,15 +1432,6 @@ get_exportlist()
iov[5].iov_base = fsp->f_mntfromname;
iov[5].iov_len = strlen(fsp->f_mntfromname) + 1;
- /*
- * Kick out MNT_ROOTFS. It should not be passed from
- * userland to kernel. It should only be used
- * internally in the kernel.
- */
- if (fsp->f_flags & MNT_ROOTFS) {
- fsp->f_flags &= ~MNT_ROOTFS;
- }
-
if (nmount(iov, iovlen, fsp->f_flags) < 0 &&
errno != ENOENT && errno != ENOTSUP) {
syslog(LOG_ERR,
@@ -2107,12 +2098,7 @@ do_mount(struct exportlist *ep, struct grouplist *grp, int exflags,
iov[5].iov_base = fsb->f_mntfromname; /* "from" */
iov[5].iov_len = strlen(fsb->f_mntfromname) + 1;
- /*
- * Remount the filesystem, but chop off the MNT_ROOTFS flag
- * as it is used internally (and will result in an error if
- * specified)
- */
- while (nmount(iov, iovlen, fsb->f_flags & ~MNT_ROOTFS) < 0) {
+ while (nmount(iov, iovlen, fsb->f_flags) < 0) {
if (cp)
*cp-- = savedc;
else