From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NWWQg-0002SE-5j for qemu-devel@nongnu.org; Sun, 17 Jan 2010 09:48:38 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NWWQb-0002Pg-Gq for qemu-devel@nongnu.org; Sun, 17 Jan 2010 09:48:37 -0500 Received: from [199.232.76.173] (port=53794 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWWQb-0002Pa-9Y for qemu-devel@nongnu.org; Sun, 17 Jan 2010 09:48:33 -0500 Received: from mx1.redhat.com ([209.132.183.28]:10845) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NWWQa-0008Tg-My for qemu-devel@nongnu.org; Sun, 17 Jan 2010 09:48:32 -0500 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o0HEmUId026147 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 17 Jan 2010 09:48:30 -0500 From: Naphtali Sprei Date: Sun, 17 Jan 2010 16:48:11 +0200 Message-Id: <1263739695-13043-1-git-send-email-nsprei@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/4] Modifications to the drives' readonly attribute 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, to replace previous set. Addresses all Kevin comments. Naphtali Sprei (4): Make CDROM a read-only drive Clean-up a little bit the RW related bits of BDRV_O_FLAGS. BDRV_O_RDONLY gone (and so is BDRV_O_ACCESS). Default value for bdrv_flags (0/zero) is READ-ONLY. Need to explicitly request READ-WRITE. Added drives' readonly option Disable fall-back to read-only when cannot open drive's file for read-write block.c | 29 +++++++++++++---------------- block.h | 2 -- block/raw-posix.c | 2 +- block/raw-win32.c | 4 ++-- block/vmdk.c | 9 +++++---- hw/xen_disk.c | 2 +- monitor.c | 2 +- qemu-img.c | 10 ++++++---- qemu-io.c | 14 ++++++-------- qemu-nbd.c | 2 +- qemu-options.hx | 2 +- vl.c | 13 ++++++++++--- 12 files changed, 47 insertions(+), 44 deletions(-)