svn commit: r215747 - in head/sys: compat/freebsd32 kern
Sergey Kandaurov
pluknet at FreeBSD.org
Tue Nov 23 13:49:16 UTC 2010
Author: pluknet
Date: Tue Nov 23 13:49:15 2010
New Revision: 215747
URL: http://svn.freebsd.org/changeset/base/215747
Log:
Update MNT_ROOTFS comments after changes in the root mount logic.
Reported by: arundel
Suggested by: marcel (phrasing)
Approved by: kib (mentor)
Modified:
head/sys/compat/freebsd32/freebsd32_misc.c
head/sys/kern/vfs_mount.c
Modified: head/sys/compat/freebsd32/freebsd32_misc.c
==============================================================================
--- head/sys/compat/freebsd32/freebsd32_misc.c Tue Nov 23 13:37:42 2010 (r215746)
+++ head/sys/compat/freebsd32/freebsd32_misc.c Tue Nov 23 13:49:15 2010 (r215747)
@@ -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;
Modified: head/sys/kern/vfs_mount.c
==============================================================================
--- head/sys/kern/vfs_mount.c Tue Nov 23 13:37:42 2010 (r215746)
+++ head/sys/kern/vfs_mount.c Tue Nov 23 13:49:15 2010 (r215747)
@@ -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;
More information about the svn-src-all
mailing list