* [PATCH 3/5]: Extend blktap userland busid to 32-bits
@ 2008-06-23 18:26 Chris Lalancette
0 siblings, 0 replies; only message in thread
From: Chris Lalancette @ 2008-06-23 18:26 UTC (permalink / raw)
To: xen-devel@lists.xensource.com
[-- Attachment #1: Type: text/plain, Size: 186 bytes --]
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.
Signed-off-by: Chris Lalancette <clalance@redhat.com>
[-- Attachment #2: xen-unstable-greater-16-vbd-tools-blktap.patch --]
[-- Type: text/x-patch, Size: 866 bytes --]
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 Mon Jun 23 17:48:13 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 Mon Jun 23 17:48:13 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 {
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-06-23 18:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-23 18:26 [PATCH 3/5]: Extend blktap userland busid to 32-bits Chris Lalancette
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.