]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: ignore empty xattr leaf blocks
authorDarrick J. Wong <djwong@kernel.org>
Thu, 14 Jul 2022 01:58:25 +0000 (20:58 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Thu, 14 Jul 2022 01:58:25 +0000 (20:58 -0500)
commitf50d3462c654acc484ab3ea68e75e8252b77e262
tree6b149afadc833e7131a12e52b1ed12cd8d244579
parent03bc653907cc4e89cbb45524063439800a722d9b
xfs_repair: ignore empty xattr leaf blocks

As detailed in the commit:

5e572d1a xfs: empty xattr leaf header blocks are not corruption

empty xattr leaf blocks can be the benign byproduct of the system
going down during the multi-step process of adding a large xattr
to a file that has no xattrs.  If we find one at attr fork offset 0,
we should clear it, but this isn't a corruption.

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