* [PATCH] xfs_db: improve the fsmap man page entry
@ 2026-08-31 7:11 Christoph Hellwig
2026-08-31 14:46 ` Darrick J. Wong
0 siblings, 1 reply; 4+ messages in thread
From: Christoph Hellwig @ 2026-08-31 7:11 UTC (permalink / raw)
To: aalbersh; +Cc: djwong, linux-xfs
Improve documentation of the flags and optional arguments, and fix up
messed up formatting.
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
man/man8/xfs_db.8 | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/man/man8/xfs_db.8 b/man/man8/xfs_db.8
index ba2a68211ef2..89db535d38c9 100644
--- a/man/man8/xfs_db.8
+++ b/man/man8/xfs_db.8
@@ -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.
--
2.53.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] xfs_db: improve the fsmap man page entry
2026-08-31 7:11 [PATCH] xfs_db: improve the fsmap man page entry Christoph Hellwig
@ 2026-08-31 14:46 ` Darrick J. Wong
2026-09-01 8:08 ` Christoph Hellwig
0 siblings, 1 reply; 4+ messages in thread
From: Darrick J. Wong @ 2026-08-31 14:46 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: aalbersh, linux-xfs
On Mon, Aug 31, 2026 at 10:11:52AM +0300, Christoph Hellwig wrote:
> Improve documentation of the flags and optional arguments, and fix up
> messed up formatting.
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
I wonder if it's worth documenting that fsmap -l shows external
log device mappings?
Looks better in any case so
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
--D
> ---
> man/man8/xfs_db.8 | 16 +++++++++++++---
> 1 file changed, 13 insertions(+), 3 deletions(-)
>
> diff --git a/man/man8/xfs_db.8 b/man/man8/xfs_db.8
> index ba2a68211ef2..89db535d38c9 100644
> --- a/man/man8/xfs_db.8
> +++ b/man/man8/xfs_db.8
> @@ -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.
> --
> 2.53.0
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] xfs_db: improve the fsmap man page entry
2026-08-31 14:46 ` Darrick J. Wong
@ 2026-09-01 8:08 ` Christoph Hellwig
2026-09-01 14:06 ` Darrick J. Wong
0 siblings, 1 reply; 4+ messages in thread
From: Christoph Hellwig @ 2026-09-01 8:08 UTC (permalink / raw)
To: Darrick J. Wong; +Cc: Christoph Hellwig, aalbersh, linux-xfs
On Mon, Aug 31, 2026 at 07:46:04AM -0700, Darrick J. Wong wrote:
> On Mon, Aug 31, 2026 at 10:11:52AM +0300, Christoph Hellwig wrote:
> > Improve documentation of the flags and optional arguments, and fix up
> > messed up formatting.
> >
> > Signed-off-by: Christoph Hellwig <hch@lst.de>
>
> 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).
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] xfs_db: improve the fsmap man page entry
2026-09-01 8:08 ` Christoph Hellwig
@ 2026-09-01 14:06 ` Darrick J. Wong
0 siblings, 0 replies; 4+ messages in thread
From: Darrick J. Wong @ 2026-09-01 14:06 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: aalbersh, linux-xfs
On Tue, Sep 01, 2026 at 10:08:50AM +0200, Christoph Hellwig wrote:
> On Mon, Aug 31, 2026 at 07:46:04AM -0700, Darrick J. Wong wrote:
> > On Mon, Aug 31, 2026 at 10:11:52AM +0300, Christoph Hellwig wrote:
> > > Improve documentation of the flags and optional arguments, and fix up
> > > messed up formatting.
> > >
> > > Signed-off-by: Christoph Hellwig <hch@lst.de>
> >
> > 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-09-01 14:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-31 7:11 [PATCH] xfs_db: improve the fsmap man page entry Christoph Hellwig
2026-08-31 14:46 ` Darrick J. Wong
2026-09-01 8:08 ` Christoph Hellwig
2026-09-01 14:06 ` Darrick J. Wong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox