From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54885) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRwZL-0006y6-Mw for qemu-devel@nongnu.org; Thu, 11 Sep 2014 01:05:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XRwZF-0003mp-6N for qemu-devel@nongnu.org; Thu, 11 Sep 2014 01:05:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:6815) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRwZE-0003mf-VC for qemu-devel@nongnu.org; Thu, 11 Sep 2014 01:05:13 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s8B55B01002753 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 11 Sep 2014 01:05:11 -0400 From: Fam Zheng Date: Thu, 11 Sep 2014 13:04:59 +0800 Message-Id: <1410411902-7104-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH 0/3] qmp: Add "blockdev-backup" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Fam Zheng , Markus Armbruster , Stefan Hajnoczi , pbonzini@redhat.com The existing drive-backup command accepts a target file path, but that interface provides little flexibility on the properties of target block device, compared to what is possible with "blockdev-add", "drive_add" or "-drive". This is also a building block to allow image fleecing (creating a point in time snapshot and export with nbd-server-add). (For symmetry, blockdev-mirror will be added in a separate series.) Fam Fam Zheng (3): qmp: Add command 'blockdev-backup' block: Add blockdev-backup to transaction qemu-iotests: Test blockdev-backup in 055 block/backup.c | 26 +++++ blockdev.c | 95 ++++++++++++++++ qapi-schema.json | 3 + qapi/block-core.json | 50 ++++++++ qmp-commands.hx | 44 +++++++ tests/qemu-iotests/055 | 277 ++++++++++++++++++++++++++++++++++++++------- tests/qemu-iotests/055.out | 4 +- 7 files changed, 454 insertions(+), 45 deletions(-) -- 1.9.3