From: Samuel Thibault Subject: Re: Re: [Qemu-devel] [PATCH 5/7] xen: add block device backend driver. Date: Tue, 5 Aug 2008 12:36:32 +0100 Message-ID: <20080805113632.GP4478@implementation.uk.xensource.com> 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> <4897F8AA.3060303@redhat.com> <20080805104751.GN4478@implementation.uk.xensource.com> <48983488.6010207@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <48983488.6010207@redhat.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Gerd Hoffmann Cc: Blue Swirl , xen-devel@lists.xensource.com, qemu-devel@nongnu.org List-Id: xen-devel@lists.xenproject.org Gerd Hoffmann, le Tue 05 Aug 2008 13:07:52 +0200, a =E9crit : > Samuel Thibault wrote: > > Gerd Hoffmann, le Tue 05 Aug 2008 08:52:26 +0200, a =E9crit : > >>> There is: the info node, which is an OR of the > >>> VDISK_CDROM/REMOVABLE/READONLY flags. > >> Who sets that node? Backend driver or xend? > >=20 > > backend, see linux/driver/xen/blkback/xenbus.c=20 >=20 > Hmm, ok. >=20 > mode=3D"r" (in backend directory) means readonly, ok. > device-type=3D"cdrom" (backend dir too) means cdrom, ok. These are set by xend, i.e. when they come from the config, indeed. > removable can't be indicated to the backend via xenstore? Doesn't look like it is possible. Why would you want to do that? > btw: Looks like blktap doesn't set any VDISK_* flags? I guess that's because blktap doesn't have the information. The "info" node is information about the underlying source of data, detected by the block backend, while "mode" and "device-type" are configured by the user (and should override the "info" information I guess). Samuel