diff options
author | Max Reitz | 2014-06-02 22:15:21 +0200 |
---|---|---|
committer | Stefan Hajnoczi | 2014-06-04 11:30:32 +0200 |
commit | d6635c4dbbcfca7f5bd379dd970617fc3430428f (patch) | |
tree | 88161b3840842437d20be122980cc4d48d5c51e4 /qemu-img.c | |
parent | block: fix wrong order in live block migration setup (diff) | |
download | qemu-d6635c4dbbcfca7f5bd379dd970617fc3430428f.tar.gz qemu-d6635c4dbbcfca7f5bd379dd970617fc3430428f.tar.xz qemu-d6635c4dbbcfca7f5bd379dd970617fc3430428f.zip |
qemu-img: Document check exit codes
The exit code 63 (check not supported by image format) was not even
documented in the comment above the check command in the source code;
add it, as it does indeed seem useful.
Also, document all of check's exit codes in the manpage.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reported-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Benoit Canet <benoit@irqsave.net>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'qemu-img.c')
-rw-r--r-- | qemu-img.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/qemu-img.c b/qemu-img.c index b3d2bc6f02..aa89ba21fd 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -580,10 +580,11 @@ static int collect_image_check(BlockDriverState *bs, /* * Checks an image for consistency. Exit codes: * - * 0 - Check completed, image is good - * 1 - Check not completed because of internal errors - * 2 - Check completed, image is corrupted - * 3 - Check completed, image has leaked clusters, but is good otherwise + * 0 - Check completed, image is good + * 1 - Check not completed because of internal errors + * 2 - Check completed, image is corrupted + * 3 - Check completed, image has leaked clusters, but is good otherwise + * 63 - Checks are not supported by the image format */ static int img_check(int argc, char **argv) { |