Skip to content

Block layout tests for LAYOUTCOMMITs of ranges without blocks

Daejun Park b4-sent linux-nfs 1 version New

Get series with b4
b4 am [email protected] change-id 20261014-pynfs-block-commit-c70fe337b684

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Add a test for contiguous writable extents in a block layoutnfs4.1/server41tests/st_block.py+91 -30 replies
2/3Add tests for LAYOUTCOMMITs of ranges without blocks in a block layoutnfs4.1/server41tests/st_block.py+136 -00 replies
3/3Add README-blocklayoutnfs4.1/README-blocklayout+41 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH pynfs 0/3] Block layout tests for LAYOUTCOMMITs of ranges without blocks

Patch 1 is "Add a test for contiguous writable extents in a block layout", posted on October 6 [1] and unchanged. Patch 2 adds tests for LAYOUTCOMMITs of ranges that no layout covered, which shut XFS down or committed a block that nobody wrote before the XFS series in [2]. Patch 3 describes how the block layout tests are run against Linux nfsd, as Christoph asked [3].

Tested with Linux nfsd on nfsd-testing d918c664efd5, XFS on an NVMe/TCP namespace exported by nvmet, in QEMU guests with KASAN and lockdep:

- Without [2], BLOCK7 fails at the GETATTR after the LAYOUTCOMMIT, as XFS has shut down, and the tests after it fail for the same reason. With BLOCK7 and BLOCK8 left out, BLOCK9 fails because the server commits the hole. BLOCK10 passes; the server only logs a "non-standard errno" warning for it.
- With [2], BLOCK6 to BLOCK10 pass in 5 runs, and also on an XFS_DEBUG kernel.
- BLOCK3 fails with and without [2], on a bug in the test.

[1] https://lore.kernel.org/r/20261006002622epcms2p38e492aef17fdf79e48b05c9aada2918d@epcms2p3
[2] https://lore.kernel.org/r/[email protected]
[3] https://lore.kernel.org/r/[email protected]

---
Daejun Park (3):
Add a test for contiguous writable extents in a block layout Add tests for LAYOUTCOMMITs of ranges without blocks in a block layout Add README-blocklayout

 nfs4.1/README-blocklayout        |  41 +++++++
 nfs4.1/server41tests/st_block.py | 230 ++++++++++++++++++++++++++++++++++++++-
 2 files changed, 268 insertions(+), 3 deletions(-)

---
base-commit: cd4701827a8261fedbfb4c6e39029fb9671321a6
change-id: 20261014-pynfs-block-commit-c70fe337b684

Best regards,

Signature · 1 line
Daejun Park <[email protected]>