]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Fixes to the bmap script from Jan Derfinak.
authorNathan Scott <nathans@sgi.com>
Tue, 29 Apr 2003 01:54:20 +0000 (01:54 +0000)
committerNathan Scott <nathans@sgi.com>
Tue, 29 Apr 2003 01:54:20 +0000 (01:54 +0000)
io/xfs_bmap.sh

index b30b7c025f5a6560428adbe5ba989763e5870907..f16438d3f6f4e482d2b6cfcb686e7a134759a022 100755 (executable)
@@ -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