Skip to content

xfstests: test the nfs/cifs/btrfs/xfs reflink/dedupe ioctls

Darrick J. Wong fstests linux-btrfs linux-ext4 linux-xfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3test-scripts: test migration scriptstools/mvtest tools/nextid tools/sort-group+168 -00 replies
2/3generic/15[78]: fix error messages in the golden outputtests/generic/157 tests/generic/157.out tests/generic/158 +1 more+33 -170 replies
3/3reflink: more teststests/generic/820 tests/generic/820.out tests/generic/847 +8 more+524 -03 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH v3.4 0/3] xfstests: test the nfs/cifs/btrfs/xfs reflink/dedupe ioctls

Hi all,

This is a small patch set against the reflink/dedupe test cases in xfstests. The first patch is a rewrite of the tools to find the lowest vacant ID number and to move a test case. These two programs are useful for staging a lot of new tests at a high number and moving them to lower numbers when the maintainer wants to accept the new tests.

The second patch updates the golden output for the test that examines the results of feeding bad inputs to the two ioctls. The new error values are based on a discussion of how to react to bad file types on the mailing lists and the ongoing work to hoist the ioctls to the VFS level.

The third patch has a few more tests for things that I found while rewriting XFS copy-on-write, and for explicitly testing the ability to reflink/dedupe "to the end of the file" by setting len == 0. These tests are new and need more careful review than the first two patches.

If you're going to start using this mess, you probably ought to just pull from my github trees for kernel[1], xfsprogs[2], xfstests[3], and xfs-docs[4]. They should just work with the btrfs that's in 4.4... and somewhat buggily with the 4.4 XFS patched with [1]. The relevant xfs_io support will be in xfsprogs 4.3 though it still needs a patch to fix len == 0 support. Probably easier just to grab [2] and build that.

Comments and questions are, as always, welcome.

--D

[1] https://github.com/djwong/linux/tree/for-dave
[2] https://github.com/djwong/xfsprogs/tree/for-dave
[3] https://github.com/djwong/xfstests/tree/for-dave
[4] https://github.com/djwong/xfs-documentation/tree/for-dave