[PATCH] Virtual block devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Because of a small typo in virDomainParseXMLDiskDesc, domU's can't
receive virtual block devices from dom0. Patch to fix this is attached.

David

? src/virsh
Index: src/xml.c
===================================================================
RCS file: /data/cvs/libvirt/src/xml.c,v
retrieving revision 1.11
diff -u -b -B -r1.11 xml.c
--- src/xml.c	27 Feb 2006 22:32:54 -0000	1.11
+++ src/xml.c	3 Mar 2006 20:41:25 -0000
@@ -656,9 +656,9 @@
         virBufferVSprintf(buf, "(uname 'file:%s')", source);
     else if (typ == 1) {
         if (source[0] == '/')
-	    virBufferVSprintf(buf, "(uname 'phys:%s')", source);
+	    virBufferVSprintf(buf, "(uname 'phy:%s')", source);
 	else
-	    virBufferVSprintf(buf, "(uname 'phys:/dev/%s')", source);
+	    virBufferVSprintf(buf, "(uname 'phy:/dev/%s')", source);
     }
     if (ro == 0)
         virBufferVSprintf(buf, "(mode 'w')");

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]