virt-manager/virtman-qed.diff

24 lines
739 B
Diff
Raw Normal View History

Index: virt-manager-0.9.1/src/virtManager/uihelpers.py
===================================================================
--- virt-manager-0.9.1.orig/src/virtManager/uihelpers.py
+++ virt-manager-0.9.1/src/virtManager/uihelpers.py
@@ -395,12 +395,12 @@ def build_storage_format_combo(vm, combo
combo.set_model(dev_model)
combo.set_text_column(0)
- formats = ["raw", "qcow2"]
- if vm.rhel6_defaults():
- formats.append("vmdk")
-
- for m in formats:
- dev_model.append([m])
+ if vm.conn.is_xen():
+ for m in ["raw", "qcow2", "vmdk"]:
+ dev_model.append([m])
+ else:
+ for m in ["raw", "qcow2", "qed", "vmdk"]:
+ dev_model.append([m])
combo.set_active(0)