From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NUfMF-0003v1-DT for qemu-devel@nongnu.org; Tue, 12 Jan 2010 06:56:23 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NUfM9-0003sK-9x for qemu-devel@nongnu.org; Tue, 12 Jan 2010 06:56:21 -0500 Received: from [199.232.76.173] (port=41418 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NUfM9-0003sG-08 for qemu-devel@nongnu.org; Tue, 12 Jan 2010 06:56:17 -0500 Received: from mx1.redhat.com ([209.132.183.28]:13421) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NUfM8-00037u-Dg for qemu-devel@nongnu.org; Tue, 12 Jan 2010 06:56:16 -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 o0CBuE4x020176 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 12 Jan 2010 06:56:15 -0500 From: Kevin Wolf Date: Tue, 12 Jan 2010 12:55:15 +0100 Message-Id: <1263297318-10912-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH v4 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 v4: - Handle bdrv_pwrite failure 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 | 101 ++++++++++++++++++++++++ block_int.h | 3 + qemu-img-cmds.hx | 6 ++ qemu-img.c | 227 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 6 files changed, 361 insertions(+), 3 deletions(-)