WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Re: [PATCH] Allow Xend to find device number for sdX or

To: Nuutti Kotivuori <naked@xxxxxx>
Subject: Re: [Xen-devel] Re: [PATCH] Allow Xend to find device number for sdX or hdX with udev
From: Ian Pratt <Ian.Pratt@xxxxxxxxxxxx>
Date: Mon, 17 Jan 2005 13:11:25 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxxxx, Ian.Pratt@xxxxxxxxxxxx
Delivery-date: Mon, 17 Jan 2005 13:23:50 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
In-reply-to: Your message of "Mon, 17 Jan 2005 14:17:13 +0200." <87fz10dzcm.fsf@xxxxxxxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
> Anthony Liguori wrote:
> > The follow patch changes Xend to return a device number based on:
> >
> > http://www.lanana.org/docs/device-list/devices.txt
> >
> > For sd and hd devices if stat() fails.
> 
> I would suggest not using stat() at all, and not using that device
> list at all (even though the hd and sd parts are equal ofcourse), but
> creating the mapping based on the mapping to the other direction
> inside "drivers/xen/blokfront/vbd.c". That file defines the "xvd"
> devices in addition to "hd" and "sd" devices.

We've considered doing the name lookup in blkfront, but there are
complications with it being done so early in the boot sequence,
and each target devices that is supported requires special case
code anyhow.

Passing linux major/minor numbers across the device channel
interface is admittedly rather ugly, but its not a big problem.

Ian


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel