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] About get_gendisk

To: "Ling, Xiaofeng" <xiaofeng.ling@xxxxxxxxx>
Subject: Re: [Xen-devel] About get_gendisk
From: Arun Sharma <arun.sharma@xxxxxxxxx>
Date: Wed, 17 Aug 2005 11:33:17 -0700
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 17 Aug 2005 18:31:31 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <mailman.1124291099.618@xxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <3ACA40606221794F80A5670F0AF15F84092B7488@pdsmsx403> None None <mailman.1124291099.618@xxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
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

<Prev in Thread] Current Thread [Next in Thread>