Skip to contentSkip to conversation

: Extend blktap userland busid to 32-bits

PATCH New Chris Lalancette 1 participant 1 message Jun 23, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 3/5 : Extend blktap userland busid to 32-bits

This patch just extends the busid in the userland tools to 32-bits to match the extension we made in the last patch in the kernel.

tools/blktap/drivers/blktapctrl.c +1 -1
diff -r dedfadeadf86 tools/blktap/drivers/blktapctrl.c
@@ -127,7 +127,7 @@ static int get_new_dev(int *major, int *
 	char *devname;
 	
 	tr.domid = blkif->domid;
-        tr.busid = (unsigned short)blkif->be_id;
+        tr.busid = blkif->be_id;
 	ret = ioctl(ctlfd, BLKTAP_IOCTL_NEWINTF, tr );
 	
 	if ( (ret <= 0)||(ret > MAX_TAP_DEV) ) {
tools/blktap/lib/blktaplib.h +1 -1
diff -r dedfadeadf86 tools/blktap/lib/blktaplib.h
@@ -161,7 +161,7 @@ typedef struct tapdev_info {
 
 typedef struct domid_translate {
 	unsigned short domid;
-	unsigned short busid;
+	uint32_t busid;
 } domid_translate_t ;
 
 typedef struct image {

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel