diff options
author | pluknet <pluknet@FreeBSD.org> | 2010-11-23 13:49:15 +0000 |
---|---|---|
committer | pluknet <pluknet@FreeBSD.org> | 2010-11-23 13:49:15 +0000 |
commit | 64dd3dbf397ac1c9033a04003311d3d0892dff73 (patch) | |
tree | 9c39bd2b0d210d81e4c9e38b4e8f993314845f8e /sys | |
parent | 618feb0bc8e257824c484cebc299c927f009b21c (diff) | |
download | FreeBSD-src-64dd3dbf397ac1c9033a04003311d3d0892dff73.zip FreeBSD-src-64dd3dbf397ac1c9033a04003311d3d0892dff73.tar.gz |
Update MNT_ROOTFS comments after changes in the root mount logic.
Reported by: arundel
Suggested by: marcel (phrasing)
Approved by: kib (mentor)
Diffstat (limited to 'sys')
-rw-r--r-- | sys/compat/freebsd32/freebsd32_misc.c | 3 | ||||
-rw-r--r-- | sys/kern/vfs_mount.c | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/sys/compat/freebsd32/freebsd32_misc.c b/sys/compat/freebsd32/freebsd32_misc.c index 8da3833..326cf03 100644 --- a/sys/compat/freebsd32/freebsd32_misc.c +++ b/sys/compat/freebsd32/freebsd32_misc.c @@ -2365,7 +2365,8 @@ freebsd32_nmount(struct thread *td, * Filter out MNT_ROOTFS. We do not want clients of nmount() in * userspace to set this flag, but we must filter it out if we want * MNT_UPDATE on the root file system to work. - * MNT_ROOTFS should only be set in the kernel in vfs_mountroot_try(). + * MNT_ROOTFS should only be set by the kernel when mounting its + * root file system. */ uap->flags &= ~MNT_ROOTFS; diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c index 83cbc60..4971a25 100644 --- a/sys/kern/vfs_mount.c +++ b/sys/kern/vfs_mount.c @@ -383,7 +383,8 @@ nmount(td, uap) * Filter out MNT_ROOTFS. We do not want clients of nmount() in * userspace to set this flag, but we must filter it out if we want * MNT_UPDATE on the root file system to work. - * MNT_ROOTFS should only be set in the kernel in vfs_mountroot_try(). + * MNT_ROOTFS should only be set by the kernel when mounting its + * root file system. */ uap->flags &= ~MNT_ROOTFS; @@ -720,7 +721,8 @@ mount(td, uap) * Filter out MNT_ROOTFS. We do not want clients of mount() in * userspace to set this flag, but we must filter it out if we want * MNT_UPDATE on the root file system to work. - * MNT_ROOTFS should only be set in the kernel in vfs_mountroot_try(). + * MNT_ROOTFS should only be set by the kernel when mounting its + * root file system. */ uap->flags &= ~MNT_ROOTFS; |