Skip to content

Crash consistency xfstest using dm-log-writes

Amir Goldstein fstests linux-fsdevel 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest posting 2/28 patches 1 replyIn review
  2. v4 posting 1/25 patches 3 repliesSuperseded
  3. v313 patches 21 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v214 patches33 repliesSuperseded
v1 RFC8 patches4 repliesSuperseded

Patches in v4 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8log-writes: add replay-log program to replay dm-log-writes target.gitignore doc/auxiliary-programs.txt src/Makefile +5 more+854 -11 reply
2/8replay-log: add validations for corrupt log entriessrc/log-writes/log-writes.c src/log-writes/log-writes.h src/log-writes/replay-log.c+70 -230 replies
3/8replay-log: add support for replaying ops in target device sector rangesrc/log-writes/log-writes.c src/log-writes/log-writes.h src/log-writes/replay-log.c+68 -20 replies
4/8fstests: add support for working with dm-log-writes targetREADME common/dmlogwrites doc/requirement-checking.txt+112 -00 replies
5/8fstests: crash consistency fsx test using dm-log-writestests/generic/500 tests/generic/500.out tests/generic/group+141 -00 replies
6/8fstests: regression test for ext4 crash consistency bugtests/generic/501 tests/generic/501.out tests/generic/group+83 -00 replies
7/8fstests: crash consistency fsx test for cloned filestests/generic/502 tests/generic/502.out tests/generic/group+144 -00 replies
8/8fstests: regression test for xfs leftover CoW extent errortests/generic/503 tests/generic/503.out tests/generic/group+77 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/8] Crash consistency xfstest using dm-log-writes

Eryu,

These are the rest of the patches following the fsx patches v4 posting.

There are no changes to the replay-log patches since v3.

The test patches address your v3 review comments.

The status of tests in current upstream:
- 500 fails sometimes on btrfs/ext4/xfs
- 501 fails always on ext4
- 502 fails sometimes on xfs
- 503 fails always on xfs

The data loss issue found by test 500 on xfs is fixed by commit 47c7d0b19502 ("xfs: fix incorrect log_flushed on fsync") now in master.

Amir.

Amir Goldstein (8):
log-writes: add replay-log program to replay dm-log-writes target
replay-log: add validations for corrupt log entries
replay-log: add support for replaying ops in target device sector
fstests: add support for working with dm-log-writes target
fstests: crash consistency fsx test using dm-log-writes
fstests: regression test for ext4 crash consistency bug
fstests: crash consistency fsx test for cloned files
fstests: regression test for xfs leftover CoW extent error

 .gitignore                   |   1 +
 README                       |   2 +
 common/dmlogwrites           |  90 +++++++++
 doc/auxiliary-programs.txt   |   8 +
 doc/requirement-checking.txt |  20 ++
 src/Makefile                 |   2 +-
 src/log-writes/Makefile      |  23 +++
 src/log-writes/SOURCE        |   6 +
 src/log-writes/log-writes.c  | 458 +++++++++++++++++++++++++++++++++++++++++++
 src/log-writes/log-writes.h  |  81 ++++++++
 src/log-writes/replay-log.c  | 389 ++++++++++++++++++++++++++++++++++++
 tests/generic/500            | 138 +++++++++++++
 tests/generic/500.out        |   2 +
 tests/generic/501            |  80 ++++++++
 tests/generic/501.out        |   2 +
 tests/generic/502            | 141 +++++++++++++
 tests/generic/502.out        |   2 +
 tests/generic/503            |  74 +++++++
 tests/generic/503.out        |   2 +
 tests/generic/group          |   4 +
 20 files changed, 1524 insertions(+), 1 deletion(-)
 create mode 100644 common/dmlogwrites
 create mode 100644 src/log-writes/Makefile
 create mode 100644 src/log-writes/SOURCE
 create mode 100644 src/log-writes/log-writes.c
 create mode 100644 src/log-writes/log-writes.h
 create mode 100644 src/log-writes/replay-log.c
 create mode 100755 tests/generic/500
 create mode 100644 tests/generic/500.out
 create mode 100755 tests/generic/501
 create mode 100644 tests/generic/501.out
 create mode 100755 tests/generic/502
 create mode 100644 tests/generic/502.out
 create mode 100755 tests/generic/503
 create mode 100644 tests/generic/503.out
Signature · 1 line
2.7.4