Skip to content
Snippets Groups Projects
Commit ecdc7403 authored by Jan David Mol's avatar Jan David Mol
Browse files

Task #9192: Use "lfs cp" instead of "cp" on global fs for faster I/O

parent 2c725ec1
No related branches found
Tags LOFAR-Release-2_17_0
No related merge requests found
......@@ -52,7 +52,9 @@ class copier(LOFARnodeTCP):
# construct copy command: Copy to the dir
# if process runs on local host use a simple copy command.
if self.globalfs or source_node=="localhost":
if self.globalfs:
command = ["lfs", "cp", "-r","{0}".format(source_path),"{0}".format(target_path)]
elif source_node=="localhost":
command = ["cp", "-r","{0}".format(source_path),"{0}".format(target_path)]
else:
command = ["rsync", "-r",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment