xfs_bmap: don't reject -e
PATCH v2 1/1 xfs_bmap: don't reject -e
From: Darrick J. Wong <[email protected]>
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.
---
v2: add Fixes:
--- io/xfs_bmap.sh | 5 +++-- man/man8/xfs_bmap.8 | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-)
io/xfs_bmap.sh +3 -2
@@ -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";;
man/man8/xfs_bmap.8 +1 -1
@@ -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
Quoted 8 lines · Darrick J. Wong
From: Darrick J. Wong <[email protected]>
The
xfs_iobmap command has an -e switch that prints delalloc extents without fsync'ing the file first. Thexfs_bmapmanpage 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.
Quoted 4 lines
Fixes 7536ce44f6 ("xfs_io: bmap should support querying CoW fork, shared blocks")Signed-off-by Darrick J. Wong <[email protected]>---
v2: add Fixes:
heh, you didn't have to send V2 just for a fixes, I thought we needed -c documentation too, but ... you fixed that later.
Quoted 41 lines
--- io/xfs_bmap.sh | 5 +++-- man/man8/xfs_bmap.8 | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-)io/xfs_bmap.sh +3
-2@@ -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";;man/man8/xfs_bmap.8 +1
-1@@ -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