cvs commit: src/sys/kern vfs_export.c

Craig Rodrigues rodrigc at
Tue Jan 23 06:19:16 UTC 2007

rodrigc     2007-01-23 06:19:16 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             vfs_export.c 
  When exiting vfs_export(), delete the "export" option from
  the mount options list with vfs_deleteopt().  At this point, the export
  information is saved in mp->mnt_export, so we can delete
  the "export" mount option from mp->mnt_optnew and mp->mnt_opt.
  This fixes read-write/read-only update mounts (mount -u -o rw, mount -u -o ro)
  of NFS exported directories.
  For some reason, I could only reproduce the problem with a configuration
  supplied by Andre:
  - "options QUOTA" enabled in kernel config
  - "/ -maproot=root" in /etc/exports
  Reported by:    kris, Andre Guibert de Bruet <andy siliconlandmark com>,
                  Andrzej Tobola <ato iem pw edu pl>
  Tested by:      Andre Guibert de Bruet
  Revision  Changes    Path
  1.340     +31 -11    src/sys/kern/vfs_export.c

More information about the cvs-src mailing list