aboutsummaryrefslogtreecommitdiffstats
path: root/tools/hotplug
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-04-19 08:58:43 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-04-19 08:58:43 +0100
commitfc9e443321a455dee9da6aa57538c110ee860e0f (patch)
treea6a514f72d22caeeae9b9076a922d749eedd7bd6 /tools/hotplug
parentb17520fdb15fb3e2c7b3456cfb55d32fc58653dc (diff)
downloadxen-fc9e443321a455dee9da6aa57538c110ee860e0f.tar.gz
xen-fc9e443321a455dee9da6aa57538c110ee860e0f.tar.bz2
xen-fc9e443321a455dee9da6aa57538c110ee860e0f.zip
tools/hotplug/Linux/blktap: remove optional tapdisk: prefix
Perhaps this should even be further generalized (e.g. to remove any "[!/]*:" pattern prefixes) to be more forward compatible? Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'tools/hotplug')
-rw-r--r--tools/hotplug/Linux/blktap1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/hotplug/Linux/blktap b/tools/hotplug/Linux/blktap
index eb2e8b1941..cd30a38452 100644
--- a/tools/hotplug/Linux/blktap
+++ b/tools/hotplug/Linux/blktap
@@ -59,6 +59,7 @@ t=$(xenstore_read_default "$XENBUS_PATH/type" 'MISSING')
if [ -n "$t" ]
then
p=$(xenstore_read "$XENBUS_PATH/params")
+ p=${p#tapdisk:}
# if we have a ':', chew from head including :
if echo $p | grep -q \:
then