[libvirt] [PATCH 09/14] conf: disk: Don't bother setting removable state to 0 by default

Peter Krempa pkrempa at redhat.com
Wed Apr 20 15:58:19 UTC 2016


---
 src/conf/domain_conf.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index a1febda..b1432ef 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -7407,9 +7407,6 @@ virDomainDiskDefParseXML(virDomainXMLOptionPtr xmlopt,
                            _("removable is only valid for usb disks"));
             goto error;
         }
-    } else {
-        if (def->bus == VIR_DOMAIN_DISK_BUS_USB)
-            def->removable = VIR_TRISTATE_SWITCH_ABSENT;
     }

     if (def->device == VIR_DOMAIN_DISK_DEVICE_FLOPPY &&
-- 
2.8.1




More information about the libvir-list mailing list