]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: fix messaging in longform_dir2_entry_check_data
authorDarrick J. Wong <djwong@kernel.org>
Mon, 5 Jun 2023 15:37:56 +0000 (08:37 -0700)
committerCarlos Maiolino <cem@kernel.org>
Wed, 12 Jul 2023 07:15:18 +0000 (09:15 +0200)
commitbeb78d7558ad8cd2eaa0e60dcb42d2de2b90be80
tree6ed8b900bc3979814954826b899eed7c78739b85
parentd159552bbb05de6998388b960f50e5e0012828ea
xfs_repair: fix messaging in longform_dir2_entry_check_data

Always log when we're junking a dirent from a non-shortform directory,
because we're fixing corruptions.  Even if we're in !verbose repair
mode.  Otherwise, we print things like:

entry "FOO" in dir inode XXX inconsistent with .. value (YYY) in ino ZZZ

Without telling the user that we're clearing the entry.

Fixes: 6c39a3cbda3 ("Don't trash lost+found in phase 4 Merge of master-melb:xfs-cmds:29144a by kenmcd.")
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/phase6.c