ia64/xen-unstable

changeset 17916:10e79ad54c91

blktap: Extend userland busid to 32 bits

Signed-off-by: Chris Lalancette <clalance@redhat.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Jun 27 16:08:56 2008 +0100 (2008-06-27)
parents 3edc443ae8ce
children 0728459b3c8d
files tools/blktap/drivers/blktapctrl.c tools/blktap/lib/blktaplib.h
line diff
     1.1 --- a/tools/blktap/drivers/blktapctrl.c	Fri Jun 27 14:43:29 2008 +0100
     1.2 +++ b/tools/blktap/drivers/blktapctrl.c	Fri Jun 27 16:08:56 2008 +0100
     1.3 @@ -127,7 +127,7 @@ static int get_new_dev(int *major, int *
     1.4  	char *devname;
     1.5  	
     1.6  	tr.domid = blkif->domid;
     1.7 -        tr.busid = (unsigned short)blkif->be_id;
     1.8 +        tr.busid = blkif->be_id;
     1.9  	ret = ioctl(ctlfd, BLKTAP_IOCTL_NEWINTF, tr );
    1.10  	
    1.11  	if ( (ret <= 0)||(ret > MAX_TAP_DEV) ) {
     2.1 --- a/tools/blktap/lib/blktaplib.h	Fri Jun 27 14:43:29 2008 +0100
     2.2 +++ b/tools/blktap/lib/blktaplib.h	Fri Jun 27 16:08:56 2008 +0100
     2.3 @@ -161,7 +161,7 @@ typedef struct tapdev_info {
     2.4  
     2.5  typedef struct domid_translate {
     2.6  	unsigned short domid;
     2.7 -	unsigned short busid;
     2.8 +	uint32_t busid;
     2.9  } domid_translate_t ;
    2.10  
    2.11  typedef struct image {