From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43247) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbuUZ-0003ks-G5 for qemu-devel@nongnu.org; Thu, 31 Oct 2013 11:49:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VbuUU-0004EL-4R for qemu-devel@nongnu.org; Thu, 31 Oct 2013 11:49:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbuUT-0004EG-ST for qemu-devel@nongnu.org; Thu, 31 Oct 2013 11:48:58 -0400 From: Kevin Wolf Date: Thu, 31 Oct 2013 16:48:18 +0100 Message-Id: <1383234524-372-5-git-send-email-kwolf@redhat.com> In-Reply-To: <1383234524-372-1-git-send-email-kwolf@redhat.com> References: <1383234524-372-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PULL 04/30] qemu-img: add special exit code if bdrv_check is not supported List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws Cc: kwolf@redhat.com, qemu-devel@nongnu.org From: 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 Reviewed-by: Eric Blake Signed-off-by: Kevin Wolf --- 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.8.1.4