diff --git a/virtManager/uihelpers.py b/virtManager/uihelpers.py index 5b6601fdb..d80d61eb2 100644 --- a/virtManager/uihelpers.py +++ b/virtManager/uihelpers.py @@ -358,13 +358,12 @@ def build_cache_combo(vm, combo): model = Gtk.ListStore(str, str) combo.set_model(model) set_combo_text_column(combo, 1) - model.set_sort_column_id(0, Gtk.SortType.ASCENDING) combo.set_active(-1) for m in virtinst.VirtualDisk.cache_types: model.append([m, m]) - model.append([None, "default"]) + model.insert(0, [None, "default"]) combo.set_active(len(model) - 1) diff --git a/virtinst/devicedisk.py b/virtinst/devicedisk.py index 7a6a73d8f..79e92a817 100644 --- a/virtinst/devicedisk.py +++ b/virtinst/devicedisk.py @@ -163,8 +163,10 @@ class VirtualDisk(VirtualDevice): CACHE_MODE_NONE = "none" CACHE_MODE_WRITETHROUGH = "writethrough" CACHE_MODE_WRITEBACK = "writeback" + CACHE_MODE_DIRECTSYNC = "directsync" + CACHE_MODE_UNSAFE = "unsafe" cache_types = [CACHE_MODE_NONE, CACHE_MODE_WRITETHROUGH, - CACHE_MODE_WRITEBACK] + CACHE_MODE_WRITEBACK, CACHE_MODE_DIRECTSYNC, CACHE_MODE_UNSAFE] DEVICE_DISK = "disk" DEVICE_LUN = "lun"