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
90a67c65
Commit
90a67c65
authored
Mar 26, 2018
by
Felix Seibert
Browse files
using tmp folder within the xtreemfs volume instead of /tmp
parent
a4a5f8fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
xtreemfs_client/OSDManager.py
View file @
90a67c65
...
...
@@ -442,10 +442,13 @@ class OSDManager(object):
moves a folder from one OSD to another OSD. you may specify a temporary folder.
'''
def
move_folder_to_osd
(
self
,
folder_id
:
str
,
new_osd_id
:
str
,
tmp_dir
=
'/tmp/move_folder_tmp_dir'
):
def
move_folder_to_osd
(
self
,
folder_id
:
str
,
new_osd_id
:
str
,
tmp_dir
=
None
):
folder_path
=
os
.
path
.
join
(
self
.
get_target_dir
(
folder_id
),
os
.
path
.
split
(
folder_id
)[
1
])
if
tmp_dir
is
None
:
tmp_dir
=
os
.
path
.
join
(
self
.
pathToMountPoint
,
self
.
volumeName
,
'.tmp_move_folder'
)
start_time
=
0
if
self
.
debug
:
start_time
=
time
.
time
()
...
...
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