|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] Re: [PATCH] Allow Xend to find device number for sdX or
> 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
|
|
|
|
|