Received: from eggs.gnu.org ([208.118.235.92]:46176) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvnVf-0007pE-AO for qemu-devel@nongnu.org; Thu, 17 Jan 2013 06:19:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TvnVa-0001I7-Kk for qemu-devel@nongnu.org; Thu, 17 Jan 2013 06:19:51 -0500 Received: from nodalink.pck.nerim.net ([62.212.105.220]:43887 helo=paradis.irqsave.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvnVa-0001Hk-CL for qemu-devel@nongnu.org; Thu, 17 Jan 2013 06:19:46 -0500 Date: Thu, 17 Jan 2013 12:20:15 +0100 From: =?iso-8859-1?Q?Beno=EEt?= Canet Message-ID: <20130117112014.GB3448@irqsave.net> References: <1358353518-5421-1-git-send-email-benoit@irqsave.net> <1358353518-5421-12-git-send-email-benoit@irqsave.net> <50F73884.9010307@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <50F73884.9010307@redhat.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [RFC V1 11/12] qmp: Add block-pause-dedup. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: kwolf@redhat.com, pbonzini@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com > > +# > > +# @device: the name of the device to pause the deduplication on > > +# > > +# Returns: nothing on success > > +# If @device is not a valid block device, DeviceNotFound > > +# If @device is not deduplicated, DeviceNotDeduplicated >=20 > I don't think you need this second error. A generic error is good > enough unless we can prove that having a dedicated error class makes > algorithmic sense for a given client, and I can't come up with such a > scenario off the top of my head for libvirt. Ok i'll remove it. >=20 > > +SQMP > > +block-pause-dedup > > +------------ > > + > > +Pause the deduplication on a device that support it. >=20 > s/support/supports/ >=20 > I notice that between this and patch 12, you are adding two very simila= r > commands (block-pause-dedup, block-resume-dedup); would it be any > simpler to add a single command instead: >=20 > { 'command': 'block-dedup-control', > 'data': { 'device': 'str', 'enable': 'bool' } } >=20 > where the user calls: >=20 > { "execute": "block-dedup-control", > "arguments": { "device": "ide0-hd0", "enable": false } } >=20 > to pause, and "enable":true to resume? Ok I'll merge these. Regards Beno=EEt