[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] About get_gendisk



Ling, Xiaofeng wrote:
> The get_gendisk is not exported in 2.6 kernel,
> So blkfront can not be made to module in 2.6
> while 2.4 kernel exported get_gendisk.
> Is it possible not to use get_gendisk in vbd.c?
> like save gendisk in xlvbd_alloc_gendisk?
>

Hi Xiaofeng,

I'd suggest following the method used by other Linux disk drivers that
hook into the block layer i.e. save a reference to the gendisk in
xlbd_disk_info after allocating it. Then you don't need to call get_gendisk.

        -Arun



xlbd_disk_info


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.