|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [Xen-dev][PATCH] fix qcow2 can not work with blktap2
Since the hotplug script for udev has been removed by c/s 19349, we need report
the hotplug-status while the corresponding tapdisk been create. Or else, It will
raise an error "hotplug script not working".
Signed-off-by: Yang Zhang <yang.zhang@xxxxxxxxx>
diff -r 112680f620bf tools/blktap2/daemon/tapdisk-daemon.c
--- a/tools/blktap2/daemon/tapdisk-daemon.c Mon Jun 08 18:23:57 2009 +0100
+++ b/tools/blktap2/daemon/tapdisk-daemon.c Thu Jun 18 11:32:15 2009 +0800
@@ -295,7 +295,10 @@ tapdisk_daemon_probe(struct xs_handle *x
len = strsep_len(path, '/', 7);
if (len < 0)
return;
-
+ if (path[len] == '\0') {
+ xs_printf(xsh, path, "hotplug-status", "connected");
+ return;
+ }
node = path + len + 1;
if (!tapdisk_daemon_new_vbd_event(node))
fix_qcow2_can_not_work_under_blktap2.patch
Description: fix_qcow2_can_not_work_under_blktap2.patch
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [Xen-dev][PATCH] fix qcow2 can not work with blktap2,
Zhang, Yang <=
|
|
|
|
|