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@lists.xensource.com
http://lists.xensource.com/xen-devel