Skip to contentSkip to conversation

xfs_db: improve the fsmap man page entry

PATCH In review Christoph Hellwig 2 participants 4 messages Aug 31 – Sep 1

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfs_db: improve the fsmap man page entry

Improve documentation of the flags and optional arguments, and fix up messed up formatting.

---
 man/man8/xfs_db.8 | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)
man/man8/xfs_db.8 +13 -3
index ba2a68211ef2..89db535d38c9 100644
@@ -849,14 +849,24 @@ command to convert to and from this form. Block numbers given for file blocks
 .B bmap
 command) are in this form.
 .TP
-.BI "fsmap [ " start " ] [ " end " ]
+.BI "fsmap [\-r] [" start " [" end ]]
 Prints the mapping of disk blocks used by an XFS filesystem.  The map
 lists each extent used by files, allocation group metadata,
 journalling logs, and static filesystem metadata, as well as any
 regions that are unused.  All blocks, offsets, and lengths are specified
 in units of 512-byte blocks, no matter what the filesystem's block size is.
-.BI "The optional " start " and " end " arguments can be used to constrain
-the output to a particular range of disk blocks.
+.IP
+The optional
+.I start
+and
+.I end
+arguments can be used to constrain the output to a particular range of disk
+blocks.
+.IP
+When the
+.B \-r
+option is specified, prints the reverse mapping for the real-time device
+instead of the data device.
 .TP
 .BI "fuzz [\-c] [\-d] " "field action"
 Write garbage into a specific structure field on disk.
Signature · 1 line
2.53.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Christoph Hellwig

Improve documentation of the flags and optional arguments, and fix up messed up formatting.

I wonder if it's worth documenting that fsmap -l shows external log device mappings?

Looks better in any case so

--D

Quoted 40 lines
---
 man/man8/xfs_db.8 | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)
man/man8/xfs_db.8 +13 -3
index ba2a68211ef2..89db535d38c9 100644
@@ -849,14 +849,24 @@ command to convert to and from this form. Block numbers given for file blocks
 .B bmap
 command) are in this form.
 .TP
-.BI "fsmap [ " start " ] [ " end " ]
+.BI "fsmap [\-r] [" start " [" end ]]
 Prints the mapping of disk blocks used by an XFS filesystem.  The map
 lists each extent used by files, allocation group metadata,
 journalling logs, and static filesystem metadata, as well as any
 regions that are unused.  All blocks, offsets, and lengths are specified
 in units of 512-byte blocks, no matter what the filesystem's block size is.
-.BI "The optional " start " and " end " arguments can be used to constrain
-the output to a particular range of disk blocks.
+.IP
+The optional
+.I start
+and
+.I end
+arguments can be used to constrain the output to a particular range of disk
+blocks.
+.IP
+When the
+.B \-r
+option is specified, prints the reverse mapping for the real-time device
+instead of the data device.
 .TP
 .BI "fuzz [\-c] [\-d] " "field action"
 Write garbage into a specific structure field on disk.
Signature · 1 line
2.53.0
#2 lore raw
Quoted 8 lines · Darrick J. Wong
Quoted 4 lines · Christoph Hellwig

Improve documentation of the flags and optional arguments, and fix up messed up formatting.

I wonder if it's worth documenting that fsmap -l shows external log device mappings?

That would be a bad idea, because it doesn't actually support that option (in for-next at least).

#3 lore raw
Quoted 5 lines · Christoph Hellwig
Quoted 4 lines · Darrick J. Wong
Quoted 3 lines · Christoph Hellwig

Improve documentation of the flags and optional arguments, and fix up messed up formatting.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

I wonder if it's worth documenting that fsmap -l shows external log device mappings?

That would be a bad idea, because it doesn't actually support that option (in for-next at least).

Oh, whoops. That question only makes sense to the xfs_io fsmap command, not xfs_db. Stupid question withdrawn. :)

--D