From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nck1w-00015d-EW for qemu-devel@nongnu.org; Wed, 03 Feb 2010 13:32:48 -0500 Received: from [199.232.76.173] (port=32945 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nck1v-00015S-E4 for qemu-devel@nongnu.org; Wed, 03 Feb 2010 13:32:47 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nck1t-0000HY-RO for qemu-devel@nongnu.org; Wed, 03 Feb 2010 13:32:47 -0500 Received: from mx1.redhat.com ([209.132.183.28]:13868) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Nck1s-0000H8-TE for qemu-devel@nongnu.org; Wed, 03 Feb 2010 13:32:45 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o13IWgIm000782 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 3 Feb 2010 13:32:43 -0500 From: Naphtali Sprei Date: Wed, 3 Feb 2010 20:32:24 +0200 Message-Id: <1265221948-12613-1-git-send-email-nsprei@redhat.com> Subject: [Qemu-devel] [PATCH 0/4] block: more read-only changes, related to backing files List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Naphtali Sprei The read-only changes broke qemu-img create with read-only base image These changes fix it. It also make things a little safer, opening the backing file for read-only, upgrading to read-write only for commit, and back to read-only when done. Naphtali Sprei (4): Add open_flags to BlockDriverState Will be used later qemu-img: Fix qemu-img can't create qcow image based on read-only image Block: readonly changes Open backing file read-only also for snapshot mode block.c | 57 +++++++++++++++++++++++++++++++++++++++++++++++++-------- block_int.h | 2 ++ qemu-img.c | 15 ++++++++++----- 3 files changed, 61 insertions(+), 13 deletions(-)