cvs commit: src/sys/kern vfs_mount.c

Craig Rodrigues rodrigc at FreeBSD.org
Thu Nov 1 07:09:07 PDT 2007


rodrigc     2007-11-01 14:09:07 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_7)
    sys/kern             vfs_mount.c 
  Log:
  MFC: 1.267
  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().
  
  Approved by:    re (gnn)
  
  Revision   Changes    Path
  1.265.2.1  +13 -4     src/sys/kern/vfs_mount.c


More information about the cvs-all mailing list