I *KNOW* what the command does. I've read the man page and the book.
HOWEVER, the way this used to work (and apparently not anymore) was you
were free to unexport/unshare a dir/vol globally (IE: exportfs -u -a
/usr/local) but it would *NOT* affect *EXISTING* mounts. Just newly
requested ones.
I'll go quietly now...
man page says it all, dude!
SunOS/BSD Compatibility Package Commands exportfs(1B)
NAME
exportfs - translates exportfs options to share/unshare com-
mands
SYNOPSIS
/usr/sbin/exportfs [ -aiuv ] [ -o options ] [ pathname ]
DESCRIPTION
exportfs translates SunOS 4.x exportfs options to the
corresponding share/unshare options and invokes
share/unshare with the translated options.
With no options or arguments, exportfs invokes share to
print out the list of all currently shared NFS filesystems.
exportfs is the BSD/Compatibility Package command of
share(1M) and unshare(1M). Use share(1M)/ unshare(1M) when-
ever possible.
OPTIONS
-a Invokes shareall(1M), or if -u is specified, invokes
unshareall(1M).
-i Ignore options in /etc/dfs/dfstab.
-u Invokes unshare(1M) on pathname.
-v Verbose.
-o options
Specify a comma-separated list of optional charac-
teristics for the filesystems being exported. exportfs
translates options to share-equivalent options. (see
share(1M) for information about individual options).
ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Availability | SUNWcsu |
|_____________________________|_____________________________|
SEE ALSO
share(1M), shareall(1M), unshare(1M), unshareall(1M), attri-
butes(5)
SunOS 5.8 Last change: 28 Mar 1994 1
Bob Bailey
Network Centric Systems (NCS)
North Texas Engineering Automation
Central Operations Desk
Phone: 972-952-2518
Pager: 972-670-7336
Alpha Pager: 9726707336@messaging.nextel.com
Robert Borowicz rbaus@swbell.net
Sent by: owner-toasters@mathworks.com
05/21/2003 10:19 AM
To: toasters@mathworks.com
cc:
Subject: exportfs -u -a
Perhaps I'm rusty with my NFS knowledge....
I made a change to my /usr/local export. (-root on a build host) I did an
"exportfs -u -a" and to my horror all of the *existing* /usr/local mounts
went stale.
I do not remember this happening with Auspex's (in a previous life) and
SunOS 4.1.2. Perhaps I need to go back to the blue NFS/NIS O'Reilly book....
Is this a Solaris 2.8 ism, or am I missing something obvious in my re-entry
to the world of NFS...
Here is my vfstab entry:
well:/vol/sysvol0/local
TIA
-Bob