mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-30 22:50:10 +03:00
B OpenNebula/one#6288: Fix volatile BLOCK attach for lvm_fs_ssh
DISK_TYPE is added for volatile disks. This patch checks DISK_TYPE in all cases. It removes TM name checks. (cherry picked from commit 1e5a9ebba068fd6fb5925630d019cb879cdf6789)
This commit is contained in:
parent
07cb0f9b53
commit
d5909d5995
@ -1116,19 +1116,15 @@ function get_disk_information {
|
||||
</auth>"
|
||||
fi
|
||||
;;
|
||||
BLOCK)
|
||||
TYPE_SOURCE="dev"
|
||||
TYPE_XML="block"
|
||||
DEVICE="disk"
|
||||
;;
|
||||
*)
|
||||
case "$DISK_TM_MAD" in
|
||||
fs_lvm)
|
||||
TYPE_SOURCE="dev"
|
||||
TYPE_XML="block"
|
||||
DEVICE="disk"
|
||||
;;
|
||||
*)
|
||||
TYPE_SOURCE="file"
|
||||
TYPE_XML="file"
|
||||
DEVICE="disk"
|
||||
;;
|
||||
esac
|
||||
TYPE_SOURCE="file"
|
||||
TYPE_XML="file"
|
||||
DEVICE="disk"
|
||||
;;
|
||||
|
||||
esac
|
||||
|
Loading…
x
Reference in New Issue
Block a user