|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 3/5]: Extend blktap userland busid to 32-bits v2
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.
Changes since v1:
- None
Signed-off-by: Chris Lalancette <clalance@xxxxxxxxxx>
diff -r dedfadeadf86 tools/blktap/drivers/blktapctrl.c
--- a/tools/blktap/drivers/blktapctrl.c Fri Jun 20 18:42:45 2008 +0100
+++ b/tools/blktap/drivers/blktapctrl.c Wed Jun 25 15:34:20 2008 +0200
@@ -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) ) {
diff -r dedfadeadf86 tools/blktap/lib/blktaplib.h
--- a/tools/blktap/lib/blktaplib.h Fri Jun 20 18:42:45 2008 +0100
+++ b/tools/blktap/lib/blktaplib.h Wed Jun 25 15:34:20 2008 +0200
@@ -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
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH 3/5]: Extend blktap userland busid to 32-bits v2,
Chris Lalancette <=
|
|
|
|
|