File xen-rbd.patch of Package xen

diff -Naur xen-4.2.1-testing/tools/qemu-xen-traditional-dir-remote/xenstore.c xen-4.2.1-testing.b/tools/qemu-xen-traditional-dir-remote/xenstore.c
--- xen-4.2.1-testing/tools/qemu-xen-traditional-dir-remote/xenstore.c	2013-04-24 15:50:10.881263808 -0600
+++ xen-4.2.1-testing.b/tools/qemu-xen-traditional-dir-remote/xenstore.c	2013-04-24 15:53:44.024424404 -0600
@@ -547,7 +547,7 @@
 
         free(params);
         if (!strcmp(drv,"iscsi") || !strcmp(drv, "npiv") ||
-            !strcmp(drv,"dmmd")) {
+            !strcmp(drv,"dmmd") || !strcmp(drv, "rbd")) {
           if (pasprintf(&buf, "%s/node", bpath) == -1)
              continue;
 
@@ -705,6 +705,8 @@
 		    format = &bdrv_raw;
 		} else if (!strcmp(drv,"npiv")) {
 		    format = &bdrv_raw;
+ 		} else if (!strcmp(drv,"rbd")) {
+		    format = &bdrv_raw;
 		} else if (!strcmp(drv,"dmmd")) {
 		    format = &bdrv_raw;
 		} else {
openSUSE Build Service is sponsored by