Commit 2522c59e authored by Helga Velroyen's avatar Helga Velroyen
Browse files

Removes the 'sharedfile' storage type



Since storage type are supposed to represent the underlying technology
of disk templates, the storage type 'sharedfile' is superfluous, because
technically both disk templates 'file' and 'sharedfile' use the file system.
This will be of use when implementing the storage space reporting for
all disk templates.
Signed-off-by: default avatarHelga Velroyen <helgav@google.com>
Reviewed-by: default avatarMichele Tartara <mtarara@google.com>
parent 0cd89214
......@@ -380,7 +380,6 @@ ST_FILE = "file"
ST_LVM_PV = "lvm-pv"
ST_LVM_VG = "lvm-vg"
ST_RADOS = "rados"
ST_SHARED_FILE = "sharedfile"
VALID_STORAGE_TYPES = compat.UniqueFrozenset([
ST_BLOCK,
......@@ -390,7 +389,6 @@ VALID_STORAGE_TYPES = compat.UniqueFrozenset([
ST_LVM_PV,
ST_LVM_VG,
ST_RADOS,
ST_SHARED_FILE,
])
# Storage fields
......@@ -482,7 +480,7 @@ DISK_TEMPLATES_STORAGE_TYPE = {
DT_FILE: ST_FILE,
DT_PLAIN: ST_LVM_VG,
DT_RBD: ST_RADOS,
DT_SHARED_FILE: ST_SHARED_FILE,
DT_SHARED_FILE: ST_FILE,
}
# the set of network-mirrored disk templates
......
......@@ -303,7 +303,6 @@ $(THH.declareSADT "StorageType"
, ("StorageLvmPv", 'C.stLvmPv)
, ("StorageLvmVg", 'C.stLvmVg)
, ("StorageDiskless", 'C.stDiskless)
, ("StorageSharedFile", 'C.stSharedFile)
, ("StorageBlock", 'C.stBlock)
, ("StorageRados", 'C.stRados)
, ("StorageExt", 'C.stExt)
......
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