]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: ignore leaf attr ichdr.count in verifier during log replay
authorEric Sandeen <sandeen@redhat.com>
Tue, 10 Jan 2017 02:18:50 +0000 (20:18 -0600)
committerEric Sandeen <sandeen@redhat.com>
Tue, 10 Jan 2017 02:18:50 +0000 (20:18 -0600)
commita002f1d8d7ec5e3be7ad0b5f9954b717df19241f
tree4c221c276dbfbd23333148d98f3a41c57d8675f5
parent0bb902147e6abe99e935465770f69814eff427a5
xfs: ignore leaf attr ichdr.count in verifier during log replay

Source kernel commit: 2e1d23370e75d7d89350d41b4ab58c7f6a0e26b2

When we create a new attribute, we first create a shortform
attribute, and try to fit the new attribute into it.
If that fails, we copy the (empty) attribute into a leaf attribute,
and do the copy again.  Thus there can be a transient state where
we have an empty leaf attribute.

If we encounter this during log replay, the verifier will fail.
So add a test to ignore this part of the leaf attr verification
during log replay.

Thanks as usual to dchinner for spotting the problem.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_attr_leaf.c