From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NLHXr-0004vo-Vp for qemu-devel@nongnu.org; Thu, 17 Dec 2009 09:41:36 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NLHXn-0004rO-C6 for qemu-devel@nongnu.org; Thu, 17 Dec 2009 09:41:35 -0500 Received: from [199.232.76.173] (port=59871 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NLHXn-0004r6-6F for qemu-devel@nongnu.org; Thu, 17 Dec 2009 09:41:31 -0500 Received: from mx1.redhat.com ([209.132.183.28]:21524) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NLHXm-0004k9-D4 for qemu-devel@nongnu.org; Thu, 17 Dec 2009 09:41:30 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nBHEfSZH032049 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 17 Dec 2009 09:41:28 -0500 From: Kevin Wolf Date: Thu, 17 Dec 2009 15:40:19 +0100 Message-Id: <1261060822-23219-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH v3 0/3] Change the backing file of images List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf This patch series adds the functionality to change the backing file of existing images. This includes simple renaming of a backing file without converting the COW image as well as safe rebasing onto a different backing file that has some changes compared to the current backing file. v2: - Added missing braces in copied code v3: - Added some missing error checks - Fixed storing the backing file format in qcow2 - Open backing files with right format Kevin Wolf (3): block: Introduce BDRV_O_NO_BACKING block: Add bdrv_change_backing_file qemu-img rebase block.c | 24 +++++- block.h | 3 + block/qcow2.c | 88 +++++++++++++++++++++ block_int.h | 3 + qemu-img-cmds.hx | 6 ++ qemu-img.c | 227 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 6 files changed, 348 insertions(+), 3 deletions(-)