SHA256
1
0
forked from pool/xen
OBS User autobuild
2009-09-26 22:20:06 +00:00
committed by Git OBS Bridge
parent 5ae0b92ca4
commit 6de5f9f31c
10 changed files with 208 additions and 442 deletions

View File

@@ -31,12 +31,12 @@ Index: xen-3.4.1-testing/tools/ioemu-remote/xenstore.c
continue;
+
+ free(params);
+ if (!strcmp(drv,"iscsi") || !strcmp(drv, "npiv"))
+ if (!strcmp(drv,"iscsi"))
+ {
+ if (pasprintf(&buf, "%s/node", bpath) == -1)
+ continue;
+
+ /* wait for block-[iscsi|npiv] script to complete and populate the
+ /* wait for block-iscsi script to complete and populate the
+ * node entry. try 30 times (30 secs) */
+ for (j = 0; j < 30; j++) {
+ params = xs_read(xsh, XBT_NULL, buf, &len);
@@ -45,7 +45,7 @@ Index: xen-3.4.1-testing/tools/ioemu-remote/xenstore.c
+ sleep(1);
+ }
+ if (params == NULL) {
+ fprintf(stderr, "qemu: %s device not found -- timed out \n", drv);
+ fprintf(stderr, "qemu: iscsi device not found -- timed out \n");
+ continue;
+ }
+ }