Received: from eggs.gnu.org ([2001:4830:134:3::10]:46605) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuinL-000599-N1 for qemu-devel@nongnu.org; Thu, 04 Jul 2013 08:37:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UuinK-0005Z9-Ey for qemu-devel@nongnu.org; Thu, 04 Jul 2013 08:37:55 -0400 Received: from mail-ea0-x236.google.com ([2a00:1450:4013:c01::236]:61960) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UuinK-0005Yx-9A for qemu-devel@nongnu.org; Thu, 04 Jul 2013 08:37:54 -0400 Received: by mail-ea0-f182.google.com with SMTP id d10so761176eaj.41 for ; Thu, 04 Jul 2013 05:37:53 -0700 (PDT) Date: Thu, 4 Jul 2013 14:37:50 +0200 From: Stefan Hajnoczi Message-ID: <20130704123750.GB4213@stefanha-thinkpad.redhat.com> References: <1372300908-7546-1-git-send-email-xiawenc@linux.vnet.ibm.com> <1372300908-7546-6-git-send-email-xiawenc@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1372300908-7546-6-git-send-email-xiawenc@linux.vnet.ibm.com> Subject: Re: [Qemu-devel] [PATCH V3 5/9] qmp: add interface blockdev-snapshot-internal-sync List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wenchao Xia Cc: kwolf@redhat.com, phrdina@redhat.com, famz@redhat.com, armbru@redhat.com, qemu-devel@nongnu.org, lcapitulino@redhat.com, stefanha@redhat.com, pbonzini@redhat.com, dietmar@proxmox.com On Thu, Jun 27, 2013 at 10:41:44AM +0800, Wenchao Xia wrote: > diff --git a/qapi-schema.json b/qapi-schema.json > index 2547a7d..fba9b15 100644 > --- a/qapi-schema.json > +++ b/qapi-schema.json > @@ -1738,6 +1738,28 @@ > '*mode': 'NewImageMode'} } > > ## > +# @blockdev-snapshot-internal-sync > +# > +# Synchronously take an internal snapshot of a block device, when the format > +# of the image used supports it. > +# > +# @device: the name of the device to generate the snapshot from > +# > +# @name: the name of new snapshot name > +# > +# Returns: nothing on success > +# If @device is not a valid block device, DeviceNotFound > +# If any snapshot matching @name exists, or the name string is invalid > +# which may mess up with snapshot ID, or name is empty, GenericError s/mess up with snapshot ID/collide with snapshot IDs/ > +image used supports it. If the name is a numeric string which may mess up with Same here.