Allow blktap specification to be a path to a file
PATCH 1/1 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 <[email protected]>
Signed-off-by Josh Nicholas <[email protected]>
tools/examples/blktap +6 -1
@@ -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
[email protected]
http://lists.xensource.com/xen-devel
Quoted 5 lines · Ben Guthro
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 <[email protected]>Signed-off-by Josh Nicholas <[email protected]>
readlink should work fine on a real file, and just return its filename unmodified.
-- Keir
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel