From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:33520) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2B0s-000240-P8 for qemu-devel@nongnu.org; Mon, 27 Feb 2012 19:33:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S2B0r-0004ZE-1E for qemu-devel@nongnu.org; Mon, 27 Feb 2012 19:33:54 -0500 Received: from mx1.redhat.com ([209.132.183.28]:41000) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2B0q-0004Yz-Pn for qemu-devel@nongnu.org; Mon, 27 Feb 2012 19:33:52 -0500 From: Jeff Cody Date: Mon, 27 Feb 2012 19:33:41 -0500 Message-Id: Subject: [Qemu-devel] [PATCH v3 0/2] Group Live Snapshots List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, stefanha@gmail.com, armbru@redhat.com, lcapitulino@redhat.com, pbonzini@redhat.com, eblake@redhat.com This patchset adds the ability to take a snapshot of a group of devices, rather than each device individually. Upon failure of any snapshot, all snapshots taken by the command will be abandoned, and the appropriate failure code returned. All the changes from v2 to v3 are in patch 1/2. This differs from v2 in that: * Comments were added and clarified, as recommended by Stefan and Kevin * In block.c: - the assignment of the backing_hd was moved closer to the swap, for clarity - additional fields preserved (geometery, io stats, r/w error) - more fields cleared in lower layer bs after the swap * In blockdev.c: - Removed the is_open field - bdrv_drain_all() moved to the top of the function - Error checking on bdrv_flush() (and no flush if it is read-only) - Fixed mem leak scenarios * In block_int.h: - Note at the top of the BlockDriverState struct Jeff Cody (2): qapi: Introduce blockdev-group-snapshot-sync command QMP: Add qmp command for blockdev-group-snapshot-sync block.c | 80 ++++++++++++++++++++++++++++++++ block.h | 1 + block_int.h | 6 +++ blockdev.c | 133 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ qapi-schema.json | 38 +++++++++++++++ qmp-commands.hx | 39 ++++++++++++++++ 6 files changed, 297 insertions(+), 0 deletions(-) -- 1.7.9.rc2.1.g69204