projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bab1f0a
)
libxl: fix incorrect return of ERROR_INVAL from disk_try_backend
author
Ian Jackson
<Ian.Jackson@eu.citrix.com>
Thu, 7 Jul 2011 11:35:05 +0000
(12:35 +0100)
committer
Ian Jackson
<Ian.Jackson@eu.citrix.com>
Thu, 7 Jul 2011 11:35:05 +0000
(12:35 +0100)
disk_try_backend is supposed to return 0 or the disk backend format.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_device.c
patch
|
blob
|
history
diff --git
a/tools/libxl/libxl_device.c
b/tools/libxl/libxl_device.c
index 0a00b246716b37d76961dec7711548eb6114d04e..0680211ec18f12edd1917e0135cda6c89d1dfa5e 100644
(file)
--- a/
tools/libxl/libxl_device.c
+++ b/
tools/libxl/libxl_device.c
@@
-145,7
+145,7
@@
static int disk_try_backend(disk_try_backend_args *a,
LIBXL__LOG(ctx, LIBXL__LOG_DEBUG, "Disk vdev=%s, backend phy"
" unsuitable as phys path not a block device",
a->disk->vdev);
- return
ERROR_INVAL
;
+ return
0
;
}
return backend;