Commit 97f4fab7 authored by Dimitris Aragiorgis's avatar Dimitris Aragiorgis Committed by Klaus Aehlig
Browse files

Fix BlockdevSnapshot in case of non lvm-based disk



In case of non lvm-based disk (i.e. drbd, plain disk template)
snapshot is currently not supported. The RPC will fail reporting the
disk's logical_id (and not unique_id since only BlockDev has one)
and its dev_type.
Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
parent 8f293467
......@@ -3072,7 +3072,7 @@ def BlockdevSnapshot(disk):
_Fail("Cannot find block device %s", disk)
else:
_Fail("Cannot snapshot non-lvm block device '%s' of type '%s'",
disk.unique_id, disk.dev_type)
disk.logical_id, disk.dev_type)
def BlockdevSetInfo(disk, info):
......
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