Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-ganeti
Commits
5e04ed8b
Commit
5e04ed8b
authored
Apr 05, 2008
by
Manuel Franceschini
Browse files
rpc directory functions for file backend
Reviewed-by: ultrotter
parent
a5d7fb43
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/rpc.py
View file @
5e04ed8b
...
...
@@ -710,3 +710,42 @@ def call_test_delay(node_list, duration):
c
.
connect_list
(
node_list
)
c
.
run
()
return
c
.
getresult
()
def
call_file_storage_dir_create
(
node
,
file_storage_dir
):
"""Create the given file storage directory.
This is a single-node call.
"""
c
=
Client
(
"file_storage_dir_create"
,
[
file_storage_dir
])
c
.
connect
(
node
)
c
.
run
()
return
c
.
getresult
().
get
(
node
,
False
)
def
call_file_storage_dir_remove
(
node
,
file_storage_dir
):
"""Remove the given file storage directory.
This is a single-node call.
"""
c
=
Client
(
"file_storage_dir_remove"
,
[
file_storage_dir
])
c
.
connect
(
node
)
c
.
run
()
return
c
.
getresult
().
get
(
node
,
False
)
def
call_file_storage_dir_rename
(
node
,
old_file_storage_dir
,
new_file_storage_dir
):
"""Rename file storage directory.
This is a single-node call.
"""
c
=
Client
(
"file_storage_dir_rename"
,
[
old_file_storage_dir
,
new_file_storage_dir
])
c
.
connect
(
node
)
c
.
run
()
return
c
.
getresult
().
get
(
node
,
False
)
Write
Preview
Markdown
is supported
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