]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
In vfs_export(), if we specify MNT_DELEXPORT in the struct export_args,
authorrodrigc <rodrigc@FreeBSD.org>
Sat, 16 Dec 2006 15:50:36 +0000 (15:50 +0000)
committerrodrigc <rodrigc@FreeBSD.org>
Sat, 16 Dec 2006 15:50:36 +0000 (15:50 +0000)
commit10e46645522be17076262545d5ddf178b3ebab64
treece7e7d7ef37a635f9d7052c8d36fc278e92f91ce
parentccbffdda2c1283ce6fa06c1e3ec3466576061b37
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