checked in
OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=21
This commit is contained in:
committed by
Git OBS Bridge
parent
5ae0b92ca4
commit
6de5f9f31c
@@ -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;
|
||||
+ }
|
||||
+ }
|
||||
|
Reference in New Issue
Block a user