qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 06/10] qemu-img: Prepare for locked images


From: Markus Armbruster
Subject: Re: [Qemu-devel] [PATCH 06/10] qemu-img: Prepare for locked images
Date: Mon, 11 Jan 2016 16:49:18 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Eric Blake <address@hidden> writes:

> On 12/22/2015 09:46 AM, Kevin Wolf wrote:
>> This patch extends qemu-img for working with locked images. It prints a
>> helpful error message when trying to access a locked image read-write,
>> and adds a 'qemu-img force-unlock' command as well as a 'qemu-img check
>> -r all --force' option in order to override a lock left behind after a
>> qemu crash.
>> 
>> Signed-off-by: Kevin Wolf <address@hidden>
>> ---
>>  include/block/block.h |  1 +
>>  include/qapi/error.h  |  1 +
>>  qapi/common.json      |  3 +-
>>  qemu-img-cmds.hx      | 10 ++++--
>>  qemu-img.c            | 96 
>> +++++++++++++++++++++++++++++++++++++++++++--------
>>  qemu-img.texi         | 20 ++++++++++-
>>  6 files changed, 113 insertions(+), 18 deletions(-)
>> 
>
>> +++ b/include/qapi/error.h
>> @@ -102,6 +102,7 @@ typedef enum ErrorClass {
>>      ERROR_CLASS_DEVICE_NOT_ACTIVE = QAPI_ERROR_CLASS_DEVICENOTACTIVE,
>>      ERROR_CLASS_DEVICE_NOT_FOUND = QAPI_ERROR_CLASS_DEVICENOTFOUND,
>>      ERROR_CLASS_KVM_MISSING_CAP = QAPI_ERROR_CLASS_KVMMISSINGCAP,
>> +    ERROR_CLASS_IMAGE_FILE_LOCKED = QAPI_ERROR_CLASS_IMAGEFILELOCKED,
>>  } ErrorClass;
>
> Wow - a new ErrorClass.  It's been a while since we could justify one of
> these, but I think you might have found a case.

Spell out the rationale for the new ErrorClass, please.

[...]



reply via email to

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