From: Keir Fraser Date: Mon, 19 Apr 2010 07:58:43 +0000 (+0100) Subject: tools/hotplug/Linux/blktap: remove optional tapdisk: prefix X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~12349 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fc9e443321a455dee9da6aa57538c110ee860e0f;p=xen.git 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 --- 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