projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
212aefa
)
qemu-img: fix img_commit() error return value
author
Stefan Hajnoczi
<stefanha@redhat.com>
Tue, 26 Aug 2014 18:17:54 +0000
(19:17 +0100)
committer
Stefan Hajnoczi
<stefanha@redhat.com>
Fri, 29 Aug 2014 09:46:57 +0000
(10:46 +0100)
The img_commit() return value is a process exit code. Use 1 for failure
instead of -1. The other failure paths in this function already use 1.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
qemu-img.c
patch
|
blob
|
history
diff --git
a/qemu-img.c
b/qemu-img.c
index
2052b14
..
863798e
100644
(file)
--- a/
qemu-img.c
+++ b/
qemu-img.c
@@
-752,7
+752,7
@@
static int img_commit(int argc, char **argv)
ret = bdrv_parse_cache_flags(cache, &flags);
if (ret < 0) {
error_report("Invalid cache option: %s", cache);
- return
-
1;
+ return 1;
}
bs = bdrv_new_open("image", filename, fmt, flags, true, quiet);