]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: fix messaging when shortform_dir2_junk is called
authorDarrick J. Wong <djwong@kernel.org>
Mon, 5 Jun 2023 15:37:50 +0000 (08:37 -0700)
committerCarlos Maiolino <cem@kernel.org>
Wed, 12 Jul 2023 07:15:18 +0000 (09:15 +0200)
commitd159552bbb05de6998388b960f50e5e0012828ea
tree8d47b5544a74d789c29836f69f08fe6b9a223603
parent2618b37ae9db06aecb4db74113d0eed74202370b
xfs_repair: fix messaging when shortform_dir2_junk is called

This function is called when we've decide to junk a shortform directory
entry.  This is obviously corruption of some kind, so we should always
say something, particularly if we're in !verbose repair mode.
Otherwise, if we're in non-verbose repair mode, we print things like:

entry "FOO" in shortform directory XXX references non-existent inode YYY

Without telling the sysadmin that we're removing the dirent.

Fixes: aaca101b1ae ("xfs_repair: add support for validating dirent ftype field")
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