]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_db: identify the minlogsize transaction reservation
authorDarrick J. Wong <djwong@kernel.org>
Tue, 12 Jul 2022 18:24:33 +0000 (13:24 -0500)
committerEric Sandeen <sandeen@redhat.com>
Tue, 12 Jul 2022 18:24:33 +0000 (13:24 -0500)
commit766bfbd71f5cf596b5aec66772eb8326fdb3dd63
tree5c9e3446c126cf4d838bb98d569ec1da901a91a3
parent84c5f08fdfdaf437ea7b0c836083b614d8957572
xfs_db: identify the minlogsize transaction reservation

Right now, we don't make it easy to spot the transaction reservation
used to compute the minimum log size in userspace:

# xfs_db -c logres /dev/sda
type 0 logres 168184 logcount 5 flags 0x4
...
type 25 logres 760 logcount 0 flags 0x0
type -1 logres 547200 logcount 8 flags 0x4

Type "-1" doesn't communicate the purpose at all, it just looks like a
math error.  Help out the user a bit by printing more information:

minlogsize logres 547200 logcount 8

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
db/logformat.c