Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
snf-ganeti
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
itminedu
snf-ganeti
Commits
5e04ed8b
Commit
5e04ed8b
authored
17 years ago
by
Manuel Franceschini
Browse files
Options
Downloads
Patches
Plain Diff
rpc directory functions for file backend
Reviewed-by: ultrotter
parent
a5d7fb43
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/rpc.py
+39
-0
39 additions, 0 deletions
lib/rpc.py
with
39 additions
and
0 deletions
lib/rpc.py
+
39
−
0
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
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment