summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_mount.c
diff options
context:
space:
mode:
authorpluknet <pluknet@FreeBSD.org>2010-11-23 13:49:15 +0000
committerpluknet <pluknet@FreeBSD.org>2010-11-23 13:49:15 +0000
commit64dd3dbf397ac1c9033a04003311d3d0892dff73 (patch)
tree9c39bd2b0d210d81e4c9e38b4e8f993314845f8e /sys/kern/vfs_mount.c
parent618feb0bc8e257824c484cebc299c927f009b21c (diff)
downloadFreeBSD-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/kern/vfs_mount.c')
-rw-r--r--sys/kern/vfs_mount.c6
1 files changed, 4 insertions, 2 deletions
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;
OpenPOWER on IntegriCloud