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
a5d7fb43
Commit
a5d7fb43
authored
16 years ago
by
Manuel Franceschini
Browse files
Options
Downloads
Patches
Plain Diff
ganeti-noded directory functions for file backend
Reviewed-by: ultrotter
parent
778b75bb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
daemons/ganeti-noded
+26
-0
26 additions, 0 deletions
daemons/ganeti-noded
with
26 additions
and
0 deletions
daemons/ganeti-noded
+
26
−
0
View file @
a5d7fb43
...
...
@@ -494,6 +494,32 @@ class ServerObject(BaseHTTPServer.BaseHTTPRequestHandler):
duration
=
params
[
0
]
return
utils
.
TestDelay
(
duration
)
@staticmethod
def
perspective_file_storage_dir_create
(
params
):
"""
Create the file storage directory.
"""
file_storage_dir
=
params
[
0
]
return
backend
.
CreateFileStorageDir
(
file_storage_dir
)
@staticmethod
def
perspective_file_storage_dir_remove
(
params
):
"""
Remove the file storage directory.
"""
file_storage_dir
=
params
[
0
]
return
backend
.
RemoveFileStorageDir
(
file_storage_dir
)
@staticmethod
def
perspective_file_storage_dir_rename
(
params
):
"""
Rename the file storage directory.
"""
old_file_storage_dir
=
params
[
0
]
new_file_storage_dir
=
params
[
1
]
return
backend
.
RenameFileStorageDir
(
old_file_storage_dir
,
new_file_storage_dir
)
def
ParseOptions
():
"""
Parse the command line options.
...
...
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