1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-26 06:50:09 +03:00

feature #1288: Removed unneeded actions in datastore driver

This commit is contained in:
Ruben S. Montero 2012-06-01 11:59:19 +02:00
parent 0d9a4c998a
commit f72e5f3a7d

View File

@ -44,7 +44,6 @@ class DatastoreDriver < OpenNebulaDriver
# Image Driver Protocol constants
ACTION = {
:mv => "MV",
:cp => "CP",
:rm => "RM",
:mkfs => "MKFS",
@ -77,7 +76,6 @@ class DatastoreDriver < OpenNebulaDriver
@types = ds_type
end
# register_action(ACTION[:mv].to_sym, method("mv"))
register_action(ACTION[:cp].to_sym, method("cp"))
register_action(ACTION[:rm].to_sym, method("rm"))
register_action(ACTION[:mkfs].to_sym, method("mkfs"))
@ -86,10 +84,6 @@ class DatastoreDriver < OpenNebulaDriver
############################################################################
# Image Manager Protocol Actions (generic implementation)
############################################################################
# TODO: Integrate this with TM
# def mv(id, ds, src, dst)
# do_image_action(id, ds, :mv, "'#{src}' '#{dst}' '#{id}'")
# end
def cp(id, drv_message)
ds = get_ds_type(drv_message)
@ -130,8 +124,6 @@ class DatastoreDriver < OpenNebulaDriver
result, info = get_info_from_execution(rc)
PP.pp([ACTION[action], result, id, info],STDERR)
send_message(ACTION[action], result, id, info)
end