Commit a5d7fb43 authored by Manuel Franceschini's avatar Manuel Franceschini
Browse files

ganeti-noded directory functions for file backend

Reviewed-by: ultrotter
parent 778b75bb
......@@ -494,6 +494,32 @@ class ServerObject(BaseHTTPServer.BaseHTTPRequestHandler):
duration = params[0]
return utils.TestDelay(duration)
def perspective_file_storage_dir_create(params):
"""Create the file storage directory.
file_storage_dir = params[0]
return backend.CreateFileStorageDir(file_storage_dir)
def perspective_file_storage_dir_remove(params):
"""Remove the file storage directory.
file_storage_dir = params[0]
return backend.RemoveFileStorageDir(file_storage_dir)
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,
def ParseOptions():
"""Parse the command line options.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment