]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_bmap: don't reject -e
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 22 Jun 2018 00:46:24 +0000 (19:46 -0500)
committerEric Sandeen <sandeen@redhat.com>
Fri, 22 Jun 2018 00:46:24 +0000 (19:46 -0500)
The xfs_io bmap command has an -e switch that prints delalloc extents
without fsync'ing the file first.  The xfs_bmap manpage says it'll pass
-e through, but it doesn't.  Fix the script and fix the weird manpage
discrepancy where it doesn't list -e in the available options but
discusses it anyway.

Fixes: 7536ce44f6 ("xfs_io: bmap should support querying CoW fork, shared blocks")
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
io/xfs_bmap.sh
man/man8/xfs_bmap.8

index b4e7992bb7d9015cb23bcb4d08fd0e230512137c..753d57cb3d8352ac97e93a79a96c68dec9c54c5c 100755 (executable)
@@ -5,14 +5,15 @@
 
 OPTS=""
 VERSION=false
-USAGE="Usage: xfs_bmap [-adlpvV] [-n nx] file..."
+USAGE="Usage: xfs_bmap [-adelpvV] [-n nx] file..."
 DIRNAME=`dirname $0`
 
-while getopts "adln:pvV" c
+while getopts "adeln:pvV" c
 do
        case $c in
        a)      OPTS=$OPTS" -a";;
        d)      OPTS=$OPTS" -d";;
+       e)      OPTS=$OPTS" -e";;
        l)      OPTS=$OPTS" -l";;
        n)      OPTS=$OPTS" -n "$OPTARG;;
        p)      OPTS=$OPTS" -p";;
index c7255192049a3d8efda0676706c20a812e07128b..ae923481815964f3c5e071d9ac1bc7bab5b51035 100644 (file)
@@ -4,7 +4,7 @@ xfs_bmap \- print block mapping for an XFS file
 .SH SYNOPSIS
 .B xfs_bmap
 [
-.B \-adlpv
+.B \-adelpv
 ] [
 .B \-n
 .I num_extents