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 Latest12 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12test-scripts: test migration scriptsmvtest nextid+93 -03 replies
2/12btrfs: move btrfs reflink tests to generictests/btrfs/026 tests/btrfs/026.out tests/btrfs/027 +11 more+335 -3350 replies
3/12reflink: add test support routines to a separate filecommon/rc common/reflink tests/btrfs/029 +6 more+225 -240 replies
4/12reflink: basic tests of the reflink and dedupe ioctlstests/generic/116 tests/generic/116.out tests/generic/118 +14 more+1044 -00 replies
5/12reflink: test CoW behaviors of reflinked filestests/generic/138 tests/generic/138.out tests/generic/139 +8 more+715 -00 replies
6/12reflink: test the various fallocate modestests/generic/144 tests/generic/144.out tests/generic/145 +10 more+924 -00 replies
7/12reflink: test accuracy of free block countstests/generic/150 tests/generic/150.out tests/generic/151 +12 more+798 -00 replies
8/12reflink: test error conditions due to bad inputstests/generic/157 tests/generic/157.out tests/generic/158 +6 more+456 -00 replies
9/12xfs: test xfs-specific reflink piecestests/xfs/127 tests/xfs/127.out tests/xfs/128 +10 more+726 -00 replies
10/12reflink: concurrent operations teststests/generic/161 tests/generic/161.out tests/generic/162 +16 more+926 -00 replies
11/12reflink: test that CoW writes fail when we're out of spacetests/generic/171 tests/generic/171.out tests/generic/172 +6 more+472 -00 replies
12/12reflink: test what happens when we hit resource limitstests/generic/175 tests/generic/175.out tests/generic/176 +2 more+187 -00 replies

Reviews trailers per patch

None of the 12 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchChristoph Hellwig
SeriesA-b
1/12
2/12
3/12
4/12
5/12
6/12
7/12
8/12
9/12
10/12
11/12
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFCv3.2 00/12] xfstests: test the nfs/cifs/btrfs/xfs reflink/dedupe ioctls

Hi all,

This is part of the third revision of an RFC for adding to XFS support for tracking reverse-mappings of physical blocks to file and metadata; and support for mapping multiple file logical blocks to the same physical block, more commonly known as reflinking.

This patchset aims to make xfstests perform more rigorous testing of the NFS/CIFS/btrfs/XFS file clone, reflink, and dedupe ioctls. There are now tests of the basic functionality of the three ioctls; tests to ensure that the filesystem exhibits the expected copy on write semantics; tests to try to suss out race conditions in the new write paths; tests to ensure that the ioctls peform basic disk accounting correctly; tests of the interaction between reflink and the various fallocate verbs (allocate, punch, collapse, insert zeroes); and some attempts to test the upper limits of reflinking and ENOSPC behavior.

Since the last posting, each test tries to reflink (or dedupe) on the test or scratch FS to decide if they're going to run, instead of guessing based on FS type. Per Dave's suggestion, I also converted the basic functionality tests to use fixed sizes so that I can use md5sum in the golden output to check that the file contents match exactly.

Since "RFCv3.1", I've made the following changes:

* Renumbered the tests to the lowest numbers possible, per Dave's request.

* Fixed the reflink and dedupe _require tests so that they can run on things like NFS which support reflink but not dedupe.

* Added checks for lsattr/chattr support so that we don't produce bogus failures on NFS, and put the *attr tests in separate test files.

* Appended a couple of tools I wrote to handle finding minimal test numbers and moving tests around.

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.3... and somewhat buggily with the 4.3 XFS patched with [1].

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

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs