aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Lieven <pl@kamp.de>2013-10-24 08:53:34 +0200
committerKevin Wolf <kwolf@redhat.com>2013-10-24 12:03:18 +0200
commitfefddf951b6dfe51c28d41f86669bfffb68c7a15 (patch)
treeb484109fe64d181dc8abb9501eaed8e6ed1e8bdd
parent6e13610aa454beba52944e8df6d93158d68ab911 (diff)
qemu-img: add special exit code if bdrv_check is not supported
currently it is not possible to distinguish by exitcode if there has been an error or if bdrv_check is not supported by the image format. Change the exitcode from 1 to 63 for the latter case. Signed-off-by: Peter Lieven <pl@kamp.de> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
-rw-r--r--qemu-img.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-img.c b/qemu-img.c
index 926f0a0feb..bf3fb4f8a6 100644
--- a/qemu-img.c
+++ b/qemu-img.c
@@ -607,7 +607,7 @@ static int img_check(int argc, char **argv)
if (output_format == OFORMAT_HUMAN) {
error_report("This image format does not support checks");
}
- ret = 1;
+ ret = 63;
goto fail;
}