From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nd20D-00053X-FF for qemu-devel@nongnu.org; Thu, 04 Feb 2010 08:44:13 -0500 Received: from [199.232.76.173] (port=49085 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nd20C-000535-Ud for qemu-devel@nongnu.org; Thu, 04 Feb 2010 08:44:12 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nd20B-0001Fx-JI for qemu-devel@nongnu.org; Thu, 04 Feb 2010 08:44:12 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55996) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Nd20A-0001FU-U4 for qemu-devel@nongnu.org; Thu, 04 Feb 2010 08:44:11 -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 o14Di9Tj015670 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 4 Feb 2010 08:44:10 -0500 From: Naphtali Sprei Date: Thu, 4 Feb 2010 15:43:57 +0200 Message-Id: <1265291041-31100-1-git-send-email-nsprei@redhat.com> Subject: [Qemu-devel] [PATCH v2 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 This is version 2. The change between previous patch (only 3/4) is the order of closing/re-opening the image. 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