qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] qemu-img: add special exit code if bdrv_check i


From: Peter Lieven
Subject: Re: [Qemu-devel] [PATCH] qemu-img: add special exit code if bdrv_check is not supported
Date: Tue, 22 Oct 2013 10:36:09 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0

On 22.10.2013 10:34, Eric Blake wrote:
On 10/22/2013 09:26 AM, Peter Lieven wrote:
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 255 for the latter case.
Why 255?  Sure, 'xargs' handles $?=255 differently than most other
status, but in general, $? > 128 starts to be ambiguous with death by
signal (on the other hand, most systems stop at 64 signals rather than
128).  Most applications that use differentiated exit status just use 1
and 2, rather than 1 and 255.
I would also be fine with 63. Someone started to make some
choices for check->leaks, check->corruptions using 2,3, ...
I wanted to avoid conflicts if someone adds a 4,5,6 ...

Peter




reply via email to

[Prev in Thread] Current Thread [Next in Thread]