From fc9e443321a455dee9da6aa57538c110ee860e0f Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 19 Apr 2010 08:58:43 +0100 Subject: [PATCH] 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 --- tools/hotplug/Linux/blktap | 1 + 1 file changed, 1 insertion(+) 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 -- 2.30.2