Commit 3f794828 authored by Ilias Tsitsimpis's avatar Ilias Tsitsimpis Committed by Thomas Thrainer

Move ExtStorage code out from bdev

Move the ExtStorage related code out from bdev to a new
file called 'extstorage.py'.
Signed-off-by: default avatarIlias Tsitsimpis <iliastsi@grnet.gr>
Signed-off-by: default avatarThomas Thrainer <thomasth@google.com>
Reviewed-by: default avatarThomas Thrainer <thomasth@google.com>
parent fe15b73a
......@@ -472,6 +472,7 @@ storage_PYTHON = \
lib/storage/drbd.py \
lib/storage/drbd_info.py \
lib/storage/drbd_cmdgen.py \
lib/storage/extstorage.py \
lib/storage/filestorage.py \
lib/storage/gluster.py
......
......@@ -61,6 +61,7 @@ from ganeti import hypervisor
from ganeti import constants
from ganeti.storage import bdev
from ganeti.storage import drbd
from ganeti.storage import extstorage
from ganeti.storage import filestorage
from ganeti import objects
from ganeti import ssconf
......@@ -3276,7 +3277,7 @@ def DiagnoseExtStorage(top_dirs=None):
break
for name in f_names:
es_path = utils.PathJoin(dir_name, name)
status, es_inst = bdev.ExtStorageFromDisk(name, base_dir=dir_name)
status, es_inst = extstorage.ExtStorageFromDisk(name, base_dir=dir_name)
if status:
diagnose = ""
parameters = es_inst.supported_parameters
......
This diff is collapsed.
This diff is collapsed.
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