|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] Allow blktap specification to be a path to a file
Minor change to allow a blktap specification to be an actual path to a file instead of a soft link to a file Signed-off-by: Ben Guthro <bguthro@xxxxxxxxxxxxxxx> Signed-off-by: Josh Nicholas <jnicholas@xxxxxxxxxxxxxxx> diff -r b34eb51bc04c tools/examples/blktap
--- a/tools/examples/blktap Thu Aug 16 19:37:12 2007 -0400
+++ b/tools/examples/blktap Thu Aug 16 19:37:12 2007 -0400
@@ -18,7 +18,12 @@ then
p=${p#*:}
fi
fi
-file=$(readlink -f "$p") || ebusy "$p does not exist."
+if [ -L "$p" ]; then
+ file=$(readlink -f "$p") || ebusy "$p link does not exist."
+else
+ [ -f "$p" ] || { ebusy "$p file does not exist." }
+ $file="$p"
+fi
if [ "$command" = 'add' ]
then
_______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |