Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/source/AdministratorGuide/Resources/storage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ If the local path follows the DIRAC convention (i.e. finishes with the LFN), the
{
Protocol = file
Path = /mnt/lustre_3/storm_3/lhcbdisk/
MountOptions = rw # ro by default
Host = localhost
Access = local
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,12 @@ def submitJob(self, executableFile, proxy=None, **kwargs):
continue

mountedPath = se.getStorageParameters(protocol="file")["Value"]["Path"]
bindPaths.append(f"{mountedPath}:{mountedPath}:ro")
mountOptions = se.getStorageParameters(protocol="file")["Value"].get("MountOptions", "ro")
if mountOptions not in ("rw", "ro"):
self.log.warn(f"Unknown mount mode: {mountOptions}")
continue

bindPaths.append(f"{mountedPath}:{mountedPath}:{mountOptions}")
except KeyError:
pass

Expand Down
Loading