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] Help/problems with blktap on xen-unstable

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] Help/problems with blktap on xen-unstable
From: Roland Paterson-Jones <roland@xxxxxxxxxxxx>
Date: Wed, 20 Sep 2006 15:44:27 +0200
Delivery-date: Wed, 20 Sep 2006 06:44:27 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <451131DF.1000903@xxxxxxxxxxxx>
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: <4510E1C0.7020405@xxxxxxxxxxxx> <1158747512.32181.7.camel@xxxxxxxxxxxxxxxxxxxx> <45112EC5.4010706@xxxxxxxxxxxx> <1158754236.32181.11.camel@xxxxxxxxxxxxxxxxxxxx> <451131DF.1000903@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929)
Roland Paterson-Jones wrote:

 So, I guess I need to recompile with an alternate device major number.

I can find the following refs to 254 in the source (some are dups):

./linux-2.6.16.13-xen0/drivers/xen/blktap/blktap.c: major=254, minor numbers begin at 0 */ ./linux-2.6.16.13-xen0/drivers/xen/blktap/blktap.c:#define BLKTAP_DEV_MAJOR 254 /* TODO: Make major number dynamic * ./linux-2.6-xen-sparse/drivers/xen/blktap/blktap.c: major=254, minor numbers begin at 0 */ ./linux-2.6-xen-sparse/drivers/xen/blktap/blktap.c:#define BLKTAP_DEV_MAJOR 254 /* TODO: Make major number dynamic *
./tools/blktap/lib/blktaplib.h:#define BLKTAP_DEV_MAJOR 254
./tools/blktap/drivers/blktapctrl.c:    make_blktap_dev(devname,254,0);
./tools/blktap_user/aiotools/blktapctrl.c: make_blktap_dev(devname,254,0);
./tools/blktap_user/blktaplib.h:#define BLKTAP_DEV_MAJOR 254

I'm guessing it would be good to have one definition, but I'm not too familiar with the code structure. Can a .h file span kernel and user source? Also, any idea what is meant by making major number 'dynamic' - are they proposing walking the major numbers in code until successful, or just a config option somewhere (where?).

Regards
Roland

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