Revision 87812fd3 lib/backend.py
b/lib/backend.py | ||
---|---|---|
1743 | 1743 |
r_dev = _RecursiveFindBD(disk) |
1744 | 1744 |
if r_dev is not None: |
1745 | 1745 |
# let's stay on the safe side and ask for the full size, for now |
1746 |
return r_dev.Snapshot(disk.size) |
|
1746 |
return True, r_dev.Snapshot(disk.size)
|
|
1747 | 1747 |
else: |
1748 |
return None
|
|
1748 |
_Fail("Cannot find block device %s", disk)
|
|
1749 | 1749 |
else: |
1750 |
raise errors.ProgrammerError("Cannot snapshot non-lvm block device" |
|
1751 |
" '%s' of type '%s'" % |
|
1752 |
(disk.unique_id, disk.dev_type)) |
|
1750 |
_Fail("Cannot snapshot non-lvm block device '%s' of type '%s'", |
|
1751 |
disk.unique_id, disk.dev_type) |
|
1753 | 1752 |
|
1754 | 1753 |
|
1755 | 1754 |
def ExportSnapshot(disk, dest_node, instance, cluster_name, idx): |
Also available in: Unified diff