From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KQ7hr-0002uo-HK for qemu-devel@nongnu.org; Mon, 04 Aug 2008 17:35:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KQ7ho-0002uN-41 for qemu-devel@nongnu.org; Mon, 04 Aug 2008 17:35:06 -0400 Received: from [199.232.76.173] (port=44984 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KQ7hn-0002uG-UL for qemu-devel@nongnu.org; Mon, 04 Aug 2008 17:35:03 -0400 Received: from mtaout03-winn.ispmail.ntl.com ([81.103.221.49]:26416) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KQ7hn-0001f9-Fh for qemu-devel@nongnu.org; Mon, 04 Aug 2008 17:35:03 -0400 Date: Mon, 4 Aug 2008 22:34:56 +0100 From: Samuel Thibault Subject: Re: [Xen-devel] Re: [Qemu-devel] [PATCH 5/7] xen: add block device backend driver. Message-ID: <20080804213456.GA4518@implementation> References: <1217865045-10722-1-git-send-email-kraxel@redhat.com> <1217865045-10722-6-git-send-email-kraxel@redhat.com> <48975D9A.7070109@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <48975D9A.7070109@redhat.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: Blue Swirl , xen-devel@lists.xensource.com, qemu-devel@nongnu.org Gerd Hoffmann, le Mon 04 Aug 2008 21:50:50 +0200, a écrit : > >> + mode = O_RDONLY; > >> + qflags = BDRV_O_RDONLY; > >> + info |= VDISK_READONLY | VDISK_REMOVABLE | VDISK_CDROM; > > > > Does this mean that all read-only disks are assumed to be CDROMs or > > that all removable disks are read-only? > > I'll double-check, but I think there is no media=[disk|cdrom] indicator > in xenstore. There is: the info node, which is an OR of the VDISK_CDROM/REMOVABLE/READONLY flags. Samuel