Skip to content
Snippets Groups Projects
Commit a5d7fb43 authored by Manuel Franceschini's avatar Manuel Franceschini
Browse files

ganeti-noded directory functions for file backend

Reviewed-by: ultrotter
parent 778b75bb
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment