packages: xen/xen-drbd-hvm.patch (NEW) - http://www.mail-archive.com/drbd-u...
marcus
marcus at pld-linux.org
Wed Nov 23 16:10:38 CET 2011
Author: marcus Date: Wed Nov 23 15:10:38 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- http://www.mail-archive.com/drbd-user@lists.linbit.com/msg01711.html
---- Files affected:
packages/xen:
xen-drbd-hvm.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/xen/xen-drbd-hvm.patch
diff -u /dev/null packages/xen/xen-drbd-hvm.patch:1.1
--- /dev/null Wed Nov 23 16:10:38 2011
+++ packages/xen/xen-drbd-hvm.patch Wed Nov 23 16:10:33 2011
@@ -0,0 +1,19 @@
+diff -uNr xen-3.4.3.orig/tools/ioemu-qemu-xen/xenstore.c xen-3.4.3/tools/ioemu-qemu-xen/xenstore.c
+--- xen-3.4.3.orig/tools/ioemu-qemu-xen/xenstore.c 2010-04-14 16:34:59.000000000 +0200
++++ xen-3.4.3/tools/ioemu-qemu-xen/xenstore.c 2011-11-23 15:17:56.929696307 +0100
+@@ -453,6 +453,15 @@
+ params = newparams;
+ format = &bdrv_raw;
+ }
++ /* handle drbd mapping */
++ if (!strcmp(drv, "drbd")) {
++ char *newparams = malloc(17 + strlen(params) + 1);
++ sprintf(newparams, "/dev/drbd/by-res/%s", params);
++ free(params);
++ sleep(10);
++ params = newparams;
++ format = &bdrv_raw;
++ }
+
+ #if 0
+ /* Phantom VBDs are disabled because the use of paths
================================================================
More information about the pld-cvs-commit
mailing list