]> git.pld-linux.org Git - packages/xen.git/commitdiff
- http://www.mail-archive.com/drbd-user@lists.linbit.com/msg01711.html
authormarcus <marcus@pld-linux.org>
Wed, 23 Nov 2011 15:10:33 +0000 (15:10 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    xen-drbd-hvm.patch -> 1.1

xen-drbd-hvm.patch [new file with mode: 0644]

diff --git a/xen-drbd-hvm.patch b/xen-drbd-hvm.patch
new file mode 100644 (file)
index 0000000..f1963ed
--- /dev/null
@@ -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
This page took 0.048482 seconds and 4 git commands to generate.