Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Felix Seibert
xtreemfs_client
Commits
f6bdb393
Commit
f6bdb393
authored
Mar 27, 2018
by
Felix Seibert
Browse files
fixing paths
parent
8c55ae97
Changes
1
Hide whitespace changes
Inline
Side-by-side
xtreemfs_client/OSDManager.py
View file @
f6bdb393
...
...
@@ -459,7 +459,7 @@ class OSDManager(object):
print
(
"Using SLURM mode for moving folders..."
)
if
tmp_dir
is
None
:
tmp_dir
=
os
.
path
.
join
(
self
.
pathToMountPoint
,
self
.
volumeName
,
'.tmp_move_folder'
)
tmp_dir
=
os
.
path
.
join
(
self
.
pathToMountPoint
,
'.tmp_move_folder'
)
os
.
makedirs
(
tmp_dir
,
exist_ok
=
True
)
slurm_hosts
=
div_util
.
get_slurm_hosts
()
...
...
@@ -482,7 +482,7 @@ class OSDManager(object):
command
=
""
for
move_folder
in
osd_to_folders_map
[
key
]:
folder_path
=
os
.
path
.
join
(
self
.
pathToMountPoint
,
move_folder
[
len
(
self
.
volumeName
)
+
1
:])
folder_tmp_path
=
os
.
path
.
join
(
tmp_dir
,
move_folder
)
folder_tmp_path
=
os
.
path
.
join
(
tmp_dir
,
move_folder
[
len
(
self
.
volumeName
)
+
1
:]
)
# copy folder to temporary location
command
+=
"srun -N1-1 --nodelist="
+
host_name
command
+=
" cp -r "
+
folder_path
+
" "
+
tmp_dir
+
" ; "
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment