Skip to contentSkip to conversation

tidy bootloader device constant

PATCH New Charles Coffing 1 participant 1 message Apr 25, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tidy bootloader device constant

I notice that in XendDomainInfo, BOOTLOADER_LOOPBACK_DEVICE is defined to be '/dev/xvdp'. However, there is still one place in this file that has '/dev/xvdp' hard-coded. The attached patch cleans this up.

tools/python/xen/xend/XendDomainInfo.py +1 -1
Index: xen-3.0.5-testing/tools/python/xen/xend/XendDomainInfo.py
===================================================================
@@ -1820,7 +1820,7 @@ class XendDomainInfo:
                     log.info("Unmounting %s from %s." %
                              (fn, BOOTLOADER_LOOPBACK_DEVICE))
 
-                    dom0.destroyDevice('tap', '/dev/xvdp')
+                    dom0.destroyDevice('tap', BOOTLOADER_LOOPBACK_DEVICE)
 
             if blcfg is None:
                 msg = "Had a bootloader specified, but can't find disk"

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel