]>
Commit | Line | Data |
---|---|---|
a2b72d32 | 1 | diff -uNr xen-3.4.3.orig/tools/ioemu-qemu-xen/xenstore.c xen-3.4.3/tools/ioemu-qemu-xen/xenstore.c |
2 | --- xen-3.4.3.orig/tools/ioemu-qemu-xen/xenstore.c 2010-04-14 16:34:59.000000000 +0200 | |
3 | +++ xen-3.4.3/tools/ioemu-qemu-xen/xenstore.c 2011-11-23 15:17:56.929696307 +0100 | |
4 | @@ -453,6 +453,15 @@ | |
5 | params = newparams; | |
6 | format = &bdrv_raw; | |
7 | } | |
8 | + /* handle drbd mapping */ | |
9 | + if (!strcmp(drv, "drbd")) { | |
10 | + char *newparams = malloc(17 + strlen(params) + 1); | |
11 | + sprintf(newparams, "/dev/drbd/by-res/%s", params); | |
12 | + free(params); | |
13 | + sleep(10); | |
14 | + params = newparams; | |
15 | + format = &bdrv_raw; | |
16 | + } | |
17 | ||
18 | #if 0 | |
19 | /* Phantom VBDs are disabled because the use of paths |