Skip to content

Commit

Permalink
xrootdfs: document the environment variable, change name to XROOTDFS_…
Browse files Browse the repository at this point in the history
…NO_ALLOW_OTHER
  • Loading branch information
fizmat committed May 8, 2017
1 parent 0b78899 commit 82d8c23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/XrdFfs/README
Expand Up @@ -49,6 +49,7 @@ XROOTDFS_OFSFWD: if the xrootd cluster uses ofs.forward (or ofs.forward 3way)
and expect the operations to be forwarded to the data nodes by the
redirector. Otherwise one can define XROOTDFS_OFSFWD to '0'. XrootdFS will
then go to individual data node for mv/rm/rmdir/trunc.
XROOTDFS_NO_ALLOW_OTHER: do not pass option allow_other to fuse.

Please refer to the "Introduction to the XrootdFS" document in the above web
page for more general idea of XrootdFS.
Expand Down Expand Up @@ -105,6 +106,9 @@ attr_timeout=10
entry_timeout=10
negative_timeout=5

Note that allow_other cannot be unset by command line. To disable it set the
environment variable XROOTDFS_NO_ALLOW_OTHER=1.

Extended file system attributes:
===============================

Expand Down
2 changes: 1 addition & 1 deletion src/XrdFfs/XrdFfsXrootdfs.cc
Expand Up @@ -1233,7 +1233,7 @@ int main(int argc, char *argv[])
cmdline_opts = (char **) malloc(sizeof(char*) * (argc -1 + 3));
cmdline_opts[0] = argv[0];
cmdline_opts[1] = strdup("-o");
if (getenv("XROOTDFS_NOALLOWOTHER") != NULL && ! strcmp(getenv("XROOTDFS_NOALLOWOTHER"),"1") )
if (getenv("XROOTDFS_NO_ALLOW_OTHER") != NULL && ! strcmp(getenv("XROOTDFS_NO_ALLOW_OTHER"),"1") )
cmdline_opts[2] = strdup("fsname=xrootdfs,max_write=131072,attr_timeout=10,entry_timeout=10,negative_timeout=5");
else
cmdline_opts[2] = strdup("fsname=xrootdfs,allow_other,max_write=131072,attr_timeout=10,entry_timeout=10,negative_timeout=5");
Expand Down

0 comments on commit 82d8c23

Please sign in to comment.