cvs commit: src/sys/kern vfs_mount.c

Craig Rodrigues rodrigc at FreeBSD.org
Sat Oct 27 08:59:18 PDT 2007


rodrigc     2007-10-27 15:59:18 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             vfs_mount.c 
  Log:
  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
  
  Revision  Changes    Path
  1.267     +13 -4     src/sys/kern/vfs_mount.c


More information about the cvs-src mailing list