|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH]blktap2: set corret file path for all drivers in chai
In this example: tap-ctl create -a "log:|aio:/mnt/images/debian.img"
driver 'log' gets empty string as a file path and can't create correct unix
socket in /var/run/tap.
Now every driver gets correct file path.
Signed-off-by: Lukasz Oles <lukaszoles@xxxxxxxxx>
diff -r 65db3394ef79 -r 76350d7af7d5 tools/blktap2/drivers/tapdisk-disktype.c
--- a/tools/blktap2/drivers/tapdisk-disktype.c Tue Aug 17 21:19:05 2010 +0000
+++ b/tools/blktap2/drivers/tapdisk-disktype.c Tue Aug 17 22:50:18 2010 +0000
@@ -184,7 +184,13 @@
type = tapdisk_disktype_find(name);
if (type >= 0)
- *_path = params + len + 1;
+ {
+ *_path = strrchr(params + len + 2, ':');
+ if (*_path)
+ *_path = *_path + 1;
+ else
+ *_path = params + len + 1;
+ }
return type;
}
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH]blktap2: set corret file path for all drivers in chain.,
Łukasz Oleś <=
|
|
|
|
|