]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: do not use logged xattr updates on V4 filesystems
authorDarrick J. Wong <djwong@kernel.org>
Wed, 22 Jun 2022 19:28:52 +0000 (14:28 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Wed, 22 Jun 2022 19:28:52 +0000 (14:28 -0500)
commit433bc15b8be5b69642daba768a0fe06ae436d64a
treebbb9df0ce545ea7d9cafdc9aa7b6c45035a04ba6
parent7e5dda22112cfba25b2c2202949364010bcf8e17
xfs: do not use logged xattr updates on V4 filesystems

Source kernel commit: 22a68ba724232ba675166c307ddef3749ae4c37c

V4 superblocks do not contain the log_incompat feature bit, which means
that we cannot protect xattr log items against kernels that are too old
to know how to recover them.  Turn off the log items for such
filesystems and adjust the "delayed" name to reflect what it's really
controlling.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_attr.c
libxfs/xfs_attr.h