2014-05-29 05:07 PM
I wante to export only a file system with all options specified in /etc/exports, I can use the command exportfs -io [options] path. However, since there are long options come with that path, I am wondering if there are any ways, I can only specify the path in /etc/exports, and don't need to specify the long options.
If I do exportfs -i path, it will export the file system, but all options get cut off.
2014-05-30 01:42 AM
The question is not clear. Do you wish to put all options into /etc/exports, or not? exportfs -i command is to "ignore" the options of a currently active export. If you want to pass all export options throgh CLI and write the same to /etc/exports file, try using "exportfs -p <options> <path>" (-p to make the export permanent). You may also check "man exportfs" to see what other options are available.
2014-05-30 01:44 AM
Hope the below link helps,
2014-05-30 03:23 AM
the file system and along with the long options already in /etc/exports file. After I made a change, I want to re-export the entire entry, including options, but without typing the long options in the command line.
Since the entry is already in the file, and -p will add the entry in the file, so -p could not do the job.
hope it is more clear this time.
2014-05-30 03:54 AM
unexport only one directory by "exportfs -u <path> ( if you wish to do so) and export all with "exportfs -a"
or use exportfs -r (exports which has no persistent entry in /etc/exports will be unexported if using -r)
from the man page,