From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KQGPV-0000Fx-DF for qemu-devel@nongnu.org; Tue, 05 Aug 2008 02:52:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KQGPP-00007H-6U for qemu-devel@nongnu.org; Tue, 05 Aug 2008 02:52:43 -0400 Received: from [199.232.76.173] (port=40596 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KQGPO-00006t-Tz for qemu-devel@nongnu.org; Tue, 05 Aug 2008 02:52:39 -0400 Received: from mx1.redhat.com ([66.187.233.31]:46801) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KQGPO-0006qF-3c for qemu-devel@nongnu.org; Tue, 05 Aug 2008 02:52:38 -0400 Message-ID: <4897F8AA.3060303@redhat.com> Date: Tue, 05 Aug 2008 08:52:26 +0200 From: Gerd Hoffmann MIME-Version: 1.0 Subject: Re: [Xen-devel] Re: [Qemu-devel] [PATCH 5/7] xen: add block device backend driver. References: <1217865045-10722-1-git-send-email-kraxel@redhat.com> <1217865045-10722-6-git-send-email-kraxel@redhat.com> <48975D9A.7070109@redhat.com> <20080804213456.GA4518@implementation> In-Reply-To: <20080804213456.GA4518@implementation> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Samuel Thibault , Gerd Hoffmann , Blue Swirl , xen-devel@lists.xensource.com, qemu-devel@nongnu.org Samuel Thibault wrote: > Gerd Hoffmann, le Mon 04 Aug 2008 21:50:50 +0200, a =E9crit : >>>> + mode =3D O_RDONLY; >>>> + qflags =3D BDRV_O_RDONLY; >>>> + info |=3D 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=3D[disk|cdrom] indica= tor >> in xenstore. >=20 > There is: the info node, which is an OR of the > VDISK_CDROM/REMOVABLE/READONLY flags. Who sets that node? Backend driver or xend? cheers, Gerd --=20 http://kraxel.fedorapeople.org/xenner/