[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-API] [PATCH 2 of 3] blktap2: Redirect VBD pause events to sm/blktap.py



# HG changeset patch
# User Daniel Stodden <daniel.stodden@xxxxxxxxxx>
# Date 1278590395 -3600
# Node ID 49e02232b23af620fccceeac251dcb145ba0d8ef
# Parent  95410b9efc9a51ccefa25f2e5048c25cef2bd1b4
blktap2: Redirect VBD pause events to sm/blktap.py

Delegate blkback uevent handling to sm/blktap2.py, a drop-in
replacment for scripts/block.

Once blktap2 is enabled, the new module additionally manages
pause/resume for all tapdisk2 nodes. A VBD.pause/resume then will
pause/resume the tapdev node accordingly.

Signed-off-by: Daniel Stodden <daniel.stodden@xxxxxxxxxx>

diff -r 95410b9efc9a -r 49e02232b23a scripts/xen-backend.rules
--- a/scripts/xen-backend.rules Thu Jul 08 12:59:54 2010 +0100
+++ b/scripts/xen-backend.rules Thu Jul 08 12:59:55 2010 +0100
@@ -1,5 +1,5 @@
 SUBSYSTEM=="xen-backend", KERNEL=="tap*", RUN+="/etc/xensource/scripts/tap 
$env{ACTION}"
-SUBSYSTEM=="xen-backend", KERNEL=="vbd*", RUN+="/etc/xensource/scripts/block 
$env{ACTION}"
+SUBSYSTEM=="xen-backend", KERNEL=="vbd*", RUN+="/opt/xensource/sm/blktap2.py 
vbd.uevent"
 
 SUBSYSTEM=="xen-backend", KERNEL=="vif*", RUN+="/etc/xensource/scripts/vif 
$env{ACTION} vif"
 SUBSYSTEM=="net",         KERNEL=="tap*", RUN+="/etc/xensource/scripts/vif 
$env{ACTION} tap"
 scripts/xen-backend.rules |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Attachment: vbd-uevents-sm-blktap2.diff
Description: Text Data

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.