]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: fix messaging when fixing imap due to sparse cluster
authorDarrick J. Wong <djwong@kernel.org>
Mon, 5 Jun 2023 15:38:01 +0000 (08:38 -0700)
committerCarlos Maiolino <cem@kernel.org>
Wed, 12 Jul 2023 07:15:18 +0000 (09:15 +0200)
commit1e12a0751b99efd48cda501258e16f00bef9d13d
treefa3624f2b4d71368b4e931282ba24ac0bcbf82d3
parentbeb78d7558ad8cd2eaa0e60dcb42d2de2b90be80
xfs_repair: fix messaging when fixing imap due to sparse cluster

This logic is wrong -- if we're in verbose dry-run mode, we do NOT want
to say that we're correcting the imap.  Otherwise, we print things like:

imap claims inode XXX is present, but inode cluster is sparse,

But then we can erroneously tell the user that we would correct the
imap when in fact we /are/ correcting it.

Fixes: f4ff8086586 ("xfs_repair: don't crash on partially sparse inode clusters")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
repair/dino_chunks.c