]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: warn about unwritten bits set in rmap btree keys
authorDarrick J. Wong <djwong@kernel.org>
Mon, 5 Jun 2023 15:36:18 +0000 (08:36 -0700)
committerCarlos Maiolino <cem@kernel.org>
Wed, 12 Jul 2023 07:15:19 +0000 (09:15 +0200)
commitad662cc1734675623a484e111fa2422a08ee45d6
tree81aec812bb2ff5d53b63cc86e5900bfd1bcf3e7d
parent4a16ce6837ce6f41f11dc51783470d00400a85bd
xfs_repair: warn about unwritten bits set in rmap btree keys

Now that we've changed libxfs to handle the rmapbt flags correctly when
creating and comparing rmapbt keys, teach repair to warn about keys that
have the unwritten bit erroneously set.  The old broken behavior never
caused any problems, so we only warn once per filesystem and don't set
the exitcode to 1 if we're running in dry run mode.

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/scan.c