qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 3/4] qcow2: add a migration blocker


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH 3/4] qcow2: add a migration blocker
Date: Mon, 14 Nov 2011 10:25:07 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.21) Gecko/20110831 Lightning/1.0b2 Thunderbird/3.1.13

On 11/14/2011 09:51 AM, Stefan Hajnoczi wrote:
On Fri, Nov 11, 2011 at 8:29 PM, Anthony Liguori<address@hidden>  wrote:
+#define QERR_BLOCK_FORMAT_FEATURE_NOT_SUPPORTED \
+    "{ 'class': 'BlockFormatFeatureNotSupported', 'data': { 'format': %s, 'name': 
%s, 'feature': %s } }"
+

Isn't having a separate error going to make life harder for management
tool writers?  I would have expected one "migration not supported"
error, regardless of whether the reason is ivshmem, qcow2, or anything
else.

Errors shouldn't be tied to verbs. IOW, if you have a migrate command, you don't want to have a MigrationFailed error because that's tied to a specific verb.

Instead, you want the errors to provide additional information about the verb failed. In this case, the verb is failing because you're requesting to use a feature that is not supported by this particular block format.

Regards,

Anthony Liguori


Stefan





reply via email to

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