Received: from eggs.gnu.org ([209.51.188.92]:49982) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBF08-0002xJ-AY for qemu-devel@nongnu.org; Tue, 02 Apr 2019 04:42:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hBEup-0008B4-PR for qemu-devel@nongnu.org; Tue, 02 Apr 2019 04:37:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60436) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hBEup-00084h-Eb for qemu-devel@nongnu.org; Tue, 02 Apr 2019 04:37:07 -0400 From: Markus Armbruster References: <20190326174510.13303-1-chen.zhang@intel.com> <87y34tgc7m.fsf@dusky.pond.sub.org> <9CFF81C0F6B98A43A459C9EDAD400D78060B1D99@shsmsx102.ccr.corp.intel.com> Date: Tue, 02 Apr 2019 10:37:04 +0200 In-Reply-To: <9CFF81C0F6B98A43A459C9EDAD400D78060B1D99@shsmsx102.ccr.corp.intel.com> (Chen Zhang's message of "Tue, 2 Apr 2019 07:32:40 +0000") Message-ID: <87lg0sg5vz.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] qapi/migration.json: Fix documentation issue about query_colo_status List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Zhang, Chen" Cc: Markus Armbruster , zhanghailiang , Juan Quintela , qemu-dev , "Dr. David Alan Gilbert" , Zhang Chen "Zhang, Chen" writes: >> -----Original Message----- >> From: Markus Armbruster [mailto:armbru@redhat.com] >> Sent: Tuesday, April 2, 2019 2:20 PM >> To: Zhang, Chen >> Cc: Zhang Chen ; Dr. David Alan Gilbert >> ; Juan Quintela ; zhanghailiang >> ; Eric Blake ; qemu- >> dev ; Zhang, Chen >> Subject: Re: [Qemu-devel] [PATCH] qapi/migration.json: Fix documentation >> issue about query_colo_status >> >> Zhang Chen writes: >> >> > From: Zhang Chen >> > >> > The documentation with the wrong initial version number of last_mode >> > field, This patch just fix this issue. >> > >> > Signed-off-by: Zhang Chen >> > --- >> > qapi/migration.json | 2 +- >> > 1 file changed, 1 insertion(+), 1 deletion(-) >> > >> > diff --git a/qapi/migration.json b/qapi/migration.json index >> > cfde29acf8..798c6ac2df 100644 >> > --- a/qapi/migration.json >> > +++ b/qapi/migration.json >> > @@ -1382,7 +1382,7 @@ >> > # >> > # @last_mode: COLO last running mode. If COLO is running, this field >> > # will return same like mode field, after failover we can >> > -# use this field to get last colo mode. (since 4.1) >> > +# use this field to get last colo mode. (since 4.0) >> > # >> > # @reason: describes the reason for the COLO exit. >> > # >> >> What's the excuse for spelling last_mode with '_' instead of '-'? >> >> Any objection to changing it to last-mode? > > No, I just found in migration.json have both '_' and '-', for example "migrate_cancel" and "migrate-continue". > If you think we should use the '-' format in this migration.qapi file, I will send a patch to change all command format to the '-'. Quote docs/devel/qapi-code-gen.txt: Command names, and member names within a type, should be all lower case with words separated by a hyphen. However, some existing older commands and complex types use underscore; when extending such expressions, consistency is preferred over blindly avoiding underscore. The consistency argument doesn't apply here. I'd prefer to have this cleaned up, and I'd prefer to have it done in -rc2. If I see a patch from you before I do my pull request, I'll use it, otherweise I'll patch it myself.