All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCHv2] qemu-img: add special exit code if bdrv_check is not supported
@ 2013-10-24  6:53 Peter Lieven
  2013-10-24  7:00 ` Eric Blake
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Lieven @ 2013-10-24  6:53 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, pbonzini, stefanha, Peter Lieven

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>
---
v1->v2: As Eric suggested changed the exitcode from 255 to 63.

 qemu-img.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qemu-img.c b/qemu-img.c
index 926f0a0..bf3fb4f 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;
     }
 
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-10-24 10:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-24  6:53 [Qemu-devel] [PATCHv2] qemu-img: add special exit code if bdrv_check is not supported Peter Lieven
2013-10-24  7:00 ` Eric Blake
2013-10-24 10:04   ` Kevin Wolf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.