btrfs: dm-log-writes test for fstrim with fsstress
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | fstests: log-writes: Add new discard check pointsrc/ | +8 | 0 replies | |
| 2/2 | fstests: btrfs: dm-logwrites test for fstrim and fsstress workloadtests/ tests/ tests/ | +134 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] btrfs: dm-log-writes test for fstrim with fsstress
Just to make sure the fstrim is not trimming anything vital (like tree blocks still in use) on btrfs.
The first patch is to enhance log-writes to check each DISCARD operation.
The feature is not used in test cases, as it's too time consuming. But should be a pretty handy feature for small logwrites.
The second patch is the test case.
Which triggers fsstress and a loop of fstrim, all recorded by dm-log-writes.
Then check each FLUSH after the 'prepare' mark.
The test case in theory can go generic, but I'm using various btrfs specific hack to speed up the test and has a workaround to avoid false alert.
So far I haven't triggered a bug.
Qu Wenruo (2):
fstests: log-writes: Add new discard check point
fstests: btrfs: dm-logwrites test for fstrim and fsstress workload
src/log-writes/replay-log.c | 10 ++- tests/btrfs/197 | 131 ++++++++++++++++++++++++++++++++++++ tests/btrfs/197.out | 2 + tests/btrfs/group | 1 + 4 files changed, 142 insertions(+), 2 deletions(-) create mode 100755 tests/btrfs/197 create mode 100644 tests/btrfs/197.out
Signature · 1 line
2.23.0