Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Oct 2007 15:59:18 +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:  <200710271559.l9RFxIgl021129@repoman.freebsd.org>

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



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