Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Nov 2007 14:09:07 +0000 (UTC)
From:      Craig Rodrigues <rodrigc@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern vfs_mount.c
Message-ID:  <200711011409.lA1E97Uq063329@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711011409.lA1E97Uq063329>