WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

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

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] [PATCH 2 of 3] blktap2: Redirect VBD pause events to sm/blktap.py
From: David Scott <dave.scott@xxxxxxxxxxxxx>
Date: Thu, 8 Jul 2010 13:00:24 +0100
Delivery-date: Thu, 08 Jul 2010 05:09:29 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1278590422@ely>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <patchbomb.1278590422@ely>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.4.3
# 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