From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbCCW-00068v-8y for qemu-devel@nongnu.org; Tue, 29 Oct 2013 12:31:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VbCCR-0001p4-Bd for qemu-devel@nongnu.org; Tue, 29 Oct 2013 12:31:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:9070) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbCCR-0001oz-3K for qemu-devel@nongnu.org; Tue, 29 Oct 2013 12:31:23 -0400 From: Kevin Wolf Date: Tue, 29 Oct 2013 17:30:56 +0100 Message-Id: <1383064269-27720-5-git-send-email-kwolf@redhat.com> In-Reply-To: <1383064269-27720-1-git-send-email-kwolf@redhat.com> References: <1383064269-27720-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PULL 04/17] 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