]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
fstests: Add Log Attribute Replay test
authorAllison Henderson <allison.henderson@oracle.com>
Fri, 3 Jun 2022 01:41:12 +0000 (11:41 +1000)
committerZorro Lang <zlang@kernel.org>
Fri, 3 Jun 2022 05:15:30 +0000 (13:15 +0800)
commitb475a5a251b4b8430926702853e31bb4c414e5f5
treeb7577764ee183e83e9dadd0e8b9d36110374d6da
parent627e079a5fb8cbe67c1dadbf85d8ac0477827fd5
fstests: Add Log Attribute Replay test

This patch adds tests to exercise the log attribute error
inject and log replay. These tests aim to cover cases where attributes
are added, removed, and overwritten in each format (shortform, leaf,
node). Error inject is used to replay these operations from the log.

dchinner: sanitise md5sum input to just attr values.
dchinner: correct md5sums.
dchinner: ensure replace tests use different values so recovery can
          determine the replace was replayed correctly.
dchinner: don't remove corpse in _cleanup - scratch devices don't
  require cleanup, and if the test fails we want to leave
  the broken state for post-mortem analysis.
dchinner: only run on v5 filesystems.

[zlang: restore the old value of /sys/fs/xfs/debug/larp]

Signed-off-by: Allison Henderson <allison.henderson@oracle.com>
Signed-off-by: Catherine Hoang <catherine.hoang@oracle.com>
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/xfs/018 [new file with mode: 0755]
tests/xfs/018.out [new file with mode: 0644]