From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNg9Q-0002w3-SS for qemu-devel@nongnu.org; Sun, 22 Sep 2013 05:40:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VNg9F-00044c-OT for qemu-devel@nongnu.org; Sun, 22 Sep 2013 05:40:24 -0400 Received: from e28smtp04.in.ibm.com ([122.248.162.4]:56921) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNg9F-00043y-2P for qemu-devel@nongnu.org; Sun, 22 Sep 2013 05:40:13 -0400 Received: from /spool/local by e28smtp04.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sun, 22 Sep 2013 15:10:00 +0530 Received: from d28relay04.in.ibm.com (d28relay04.in.ibm.com [9.184.220.61]) by d28dlp01.in.ibm.com (Postfix) with ESMTP id ED8C1E0056 for ; Sun, 22 Sep 2013 15:10:58 +0530 (IST) Received: from d28av02.in.ibm.com (d28av02.in.ibm.com [9.184.220.64]) by d28relay04.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r8M9ds4t42991716 for ; Sun, 22 Sep 2013 15:09:54 +0530 Received: from d28av02.in.ibm.com (localhost [127.0.0.1]) by d28av02.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id r8M9dutF032453 for ; Sun, 22 Sep 2013 15:09:56 +0530 From: Wenchao Xia Date: Sun, 22 Sep 2013 17:39:47 +0800 Message-Id: <1379842791-3776-1-git-send-email-xiawenc@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH V2 0/4] export internal snapshot by qemu-nbd List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, pbonzini@redhat.com, Wenchao Xia , stefanha@gmail.com This series allow user to read internal snapshot's contents without qemu-img convert. V2: Address Stefan's comments: 02: add 'fall through' comments in the case statement. 03: add doc about the difference of internal snapshot and backing chain snapshot, which is used in previous '--snapshot' parameter. Other: 01,04: rebased on upstream with conflict resolved. Wenchao Xia (4): 1 snapshot: distinguish id and name in load_tmp 2 qemu-nbd: support internal snapshot export 3 qemu-nbd: add doc for internal snapshot export 4 qemu-iotests: add 058 internal snapshot export with qemu-nbd case block/qcow2-snapshot.c | 16 +++++++- block/qcow2.h | 5 ++- block/snapshot.c | 37 ++++++++++++++++++- include/block/block_int.h | 4 ++- include/block/snapshot.h | 4 ++- qemu-img.c | 14 ++++++- qemu-nbd.c | 62 ++++++++++++++++++++++++++++++- qemu-nbd.texi | 8 ++++- tests/qemu-iotests/058 | 87 ++++++++++++++++++++++++++++++++++++++++++++ tests/qemu-iotests/058.out | 26 +++++++++++++ tests/qemu-iotests/group | 1 + 11 files changed, 252 insertions(+), 12 deletions(-) create mode 100755 tests/qemu-iotests/058 create mode 100644 tests/qemu-iotests/058.out