From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33392) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uroa1-0003Uw-2v for qemu-devel@nongnu.org; Wed, 26 Jun 2013 08:12:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UroZw-0004IR-Hw for qemu-devel@nongnu.org; Wed, 26 Jun 2013 08:12:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56421) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UroZw-0004I9-Ag for qemu-devel@nongnu.org; Wed, 26 Jun 2013 08:12:04 -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 r5QCC3Mp009802 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 26 Jun 2013 08:12:03 -0400 From: Stefan Hajnoczi Date: Wed, 26 Jun 2013 14:11:56 +0200 Message-Id: <1372248718-27953-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/2] block: add drive_backup HMP command List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Fam Zheng , imain@redhat.com, Stefan Hajnoczi , Paolo Bonzini These patches add the sync mode argument to drive-backup (just like drive-mirror) and then introduce the drive_backup HMP command. It's necessary to add the sync mode argument although only the 'full' is supported, since the drive_mirror HMP command defaults to sync mode 'top'. To avoid confusion, we implement the same behavior as drive_mirror and use the sync mode argument which Ian Main is currently working on implementing. Stefan Hajnoczi (2): blockdev: add sync mode to drive-backup QMP command block: add drive_backup HMP command blockdev.c | 6 ++++++ hmp-commands.hx | 20 ++++++++++++++++++++ hmp.c | 28 ++++++++++++++++++++++++++++ hmp.h | 1 + qapi-schema.json | 14 ++++++++++++-- qmp-commands.hx | 6 +++++- tests/qemu-iotests/055 | 36 +++++++++++++++++++++--------------- 7 files changed, 93 insertions(+), 18 deletions(-) -- 1.8.1.4