]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
In vfs_export(), if we specify MNT_DELEXPORT in the struct export_args,
authorCraig Rodrigues <rodrigc@FreeBSD.org>
Sat, 16 Dec 2006 15:50:36 +0000 (15:50 +0000)
committerCraig Rodrigues <rodrigc@FreeBSD.org>
Sat, 16 Dec 2006 15:50:36 +0000 (15:50 +0000)
commit03eff5830af45420ab71ed411608dc046f767445
treece7e7d7ef37a635f9d7052c8d36fc278e92f91ce
parent2892f3bbfae2252a978d6584fe236b5d83f3c13e
In vfs_export(), if we specify MNT_DELEXPORT in the struct export_args,
after we perform the operations to delete the export,
call vfs_deleteopt() to delete the "export" mount option from
the linked list of mount options associated with that mount point.

This fixes one scenario:
- put a filesystem in /etc/exports to export it
- remove the filesystem from /etc/exports to delete the export and restart
  mountd
- try to do a "mount -u -o ro" or "mount -u -o rw" on that filesystem
  now that it is no  longer exported.
sys/kern/vfs_export.c