From: Nathan Scott Date: Tue, 29 Apr 2003 01:54:20 +0000 (+0000) Subject: Fixes to the bmap script from Jan Derfinak. X-Git-Tag: XFS-1_3_0pre1~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e36dcc6fa8db1aaeb53e44c60690d7c26366b69e;p=thirdparty%2Fxfsprogs-dev.git Fixes to the bmap script from Jan Derfinak. --- diff --git a/io/xfs_bmap.sh b/io/xfs_bmap.sh index b30b7c025..f16438d3f 100755 --- a/io/xfs_bmap.sh +++ b/io/xfs_bmap.sh @@ -34,6 +34,7 @@ OPTS="" VERSION=false USAGE="Usage: xfs_bmap [-adlpvV] [-n nx] file..." +DIRNAME=`dirname $0` while getopts "adln:pvV" c do @@ -50,16 +51,16 @@ do ;; esac done -$VERSION && xfs_io -p xfs_bmap -V +$VERSION && $DIRNAME/xfs_io -p xfs_bmap -V set -- extra $@ shift $OPTIND while [ "$1" != "" ] do - eval xfs_io -r -p xfs_bmap -c 'bmap $OPTS' $1 + eval $DIRNAME/xfs_io -r -p xfs_bmap -c \"bmap $OPTS\" $1 status=$? [ $status -ne 0 ] && exit $status - shift $OPTIND + shift done exit 0