]> xenbits.xensource.com Git - xen.git/commitdiff
tools/hotplug/Linux/blktap: remove optional tapdisk: prefix
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 19 Apr 2010 07:58:43 +0000 (08:58 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 19 Apr 2010 07:58:43 +0000 (08:58 +0100)
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>
tools/hotplug/Linux/blktap

index eb2e8b19416200e9a216261ca16c9394729d6b46..cd30a38452e5674917b919d6cbeef69f81eb8d1b 100644 (file)
@@ -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