Export NFS path containing "-" (dash)

Posted by qdot on Super User See other posts from Super User or by qdot
Published on 2010-12-13T11:51:07Z Indexed on 2011/02/13 7:27 UTC
Read the original article Hit count: 434

Filed under:
|
|
|

I'm in a bit of a pinch with NFS exports file.

Specifically, I can't find a way to export a directory containing "-" in the path name.

Manual (exports(5)) states:

Also, each line may have one or more specifications for default options 
after the path name, in the form of a dash ("-") followed by an option 
list. The option list is used for all subsequent exports on that line 
only.

It then states:

If an export name contains spaces it should be quoted using double quotes. 
You can also specify spaces or other unusual character in the export name 
using a backslash followed by the character code as three octal digits.

Unfortunately, that is not the case. Specifically, if the pathname contains "-", either verbatim, or with \055 or is enclosed in double quotes, it still refers to the name without "-"

Any ideas? I have a large number of directories, all of the form

  • /vol/buildsystem-s3c2440
  • /vol/buildsystem-tao3530

and I'd prefer to have them all available as nfs exports. Short of replacing the "-" with "_" everywhere in the scripts, can it be done with "-" ?

© Super User or respective owner

Related posts about linux

Related posts about networking