[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC v2 PATCH 4/6] qerror: new error for live block com
From: |
Jeff Cody |
Subject: |
Re: [Qemu-devel] [RFC v2 PATCH 4/6] qerror: new error for live block commit, QERR_TOP_NOT_FOUND |
Date: |
Fri, 31 Aug 2012 10:42:53 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 |
On 08/30/2012 06:55 PM, Eric Blake wrote:
> On 08/30/2012 11:47 AM, Jeff Cody wrote:
>> Signed-off-by: Jeff Cody <address@hidden>
>> ---
>> qerror.h | 3 +++
>> 1 file changed, 3 insertions(+)
>>
>> diff --git a/qerror.h b/qerror.h
>> index d0a76a4..7396184 100644
>> --- a/qerror.h
>> +++ b/qerror.h
>> @@ -219,6 +219,9 @@ void assert_no_error(Error *err);
>> #define QERR_TOO_MANY_FILES \
>> ERROR_CLASS_GENERIC_ERROR, "Too many open files"
>>
>> +#define QERR_TOP_NOT_FOUND \
>> + ERROR_CLASS_GENERIC_ERROR, "Top image file %s not found"
>> +
>
> Are you sure this patch is needed, or should you be using error_setg()?
>
> http://lists.gnu.org/archive/html/qemu-devel/2012-08/msg04980.html
>
I think you are right, error_setg() would be the best course - although
I based these patches only on what was in qemu/master currently.
- [Qemu-devel] [RFC v2 PATCH 0/6] Live block commit, Jeff Cody, 2012/08/30
- [Qemu-devel] [RFC v2 PATCH 1/6] block: add support functions for live commit, to find and delete images., Jeff Cody, 2012/08/30
- [Qemu-devel] [RFC v2 PATCH 2/6] block: add live block commit functionality, Jeff Cody, 2012/08/30
- [Qemu-devel] [RFC v2 PATCH 3/6] blockdev: rename block_stream_cb to a generic block_job_cb, Jeff Cody, 2012/08/30
- [Qemu-devel] [RFC v2 PATCH 5/6] block: helper function, to find the base image of a chain, Jeff Cody, 2012/08/30
- [Qemu-devel] [RFC v2 PATCH 6/6] QAPI: add command for live block commit, 'block-commit', Jeff Cody, 2012/08/30
- [Qemu-devel] [RFC v2 PATCH 4/6] qerror: new error for live block commit, QERR_TOP_NOT_FOUND, Jeff Cody, 2012/08/30
- Re: [Qemu-devel] [RFC v2 PATCH 0/6] Live block commit, Jeff Cody, 2012/08/30