linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC 00/11] xfstests: test the btrfs/xfs reflink/dedupe ioctls
@ 2015-06-30  4:15 Darrick J. Wong
  2015-06-30  4:15 ` [PATCH 01/11] fuzz XFS and ext4 filesystems Darrick J. Wong
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Darrick J. Wong @ 2015-06-30  4:15 UTC (permalink / raw)
  To: david, darrick.wong; +Cc: linux-ext4, fstests, linux-btrfs, xfs

Hi all,

This is a RFC-quality pass at making xfstests perform more rigorous
testing of the 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.  The first
patch in the series adds fuzz testing to ext4 and XFS; aside from
being first in line, it isn't tied to any of the reflink
functionality.

To run these tests, you'll have to patch xfsprogs to have reflink and
dedupe support[1]; the patch ought to apply fairly cleanly against the
upstream git.  They should more or less work with the btrfs that
appears in 4.1, though if you want to test the XFS implementation,
you're going to have to apply a lot of patches to the kernel and
xfsprogs.  See the cover letters[2][3] for those patchsets for more
information.

Known issues: 
 * I think the race checks for dedupe could be a little sharper at
   finding mistakes.
 * I started the numbering really high to prevent the tests from
   colliding with whatever new tests might arrive; this will require
   some intervention to fix.
 * When ext4 gains reflink support, it shouldn't be difficult to make
   these tests run on it.  The patch set is based on the current
   xfstest master on kernel.org.
 * If the copy_file_range syscall ever comes around, we'll have to
   adapt xfs_io to use that in addition to the btrfs ioctls.

Comments and questions are, as always, welcome.

--D

[1] http://djwong.org/docs/03-xfs_io-reflink-and-dedupe.patch
[2] See thread "[RFC 00/15] xfsprogs: support the reflink btree" dated today.
[3] http://oss.sgi.com/archives/xfs/2015-06/msg00407.html

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-06-30  4:16 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-30  4:15 [RFC 00/11] xfstests: test the btrfs/xfs reflink/dedupe ioctls Darrick J. Wong
2015-06-30  4:15 ` [PATCH 01/11] fuzz XFS and ext4 filesystems Darrick J. Wong
2015-06-30  4:15 ` [PATCH 02/11] move btrfs reflink tests to generic Darrick J. Wong
2015-06-30  4:15 ` [PATCH 03/11] generic/32[6-8]: support xfs in addition to btrfs Darrick J. Wong
2015-06-30  4:15 ` [PATCH 04/11] basic tests of the reflink and dedupe ioctls Darrick J. Wong
2015-06-30  4:15 ` [PATCH 05/11] test CoW behaviors of reflinked files Darrick J. Wong
2015-06-30  4:16 ` [PATCH 06/11] reflink fallocate tests Darrick J. Wong
2015-06-30  4:16 ` [PATCH 07/11] reflink concurrent operations tests Darrick J. Wong
2015-06-30  4:16 ` [PATCH 08/11] test reflink for accuracy in free block counts Darrick J. Wong
2015-06-30  4:16 ` [PATCH 09/11] test error conditions on reflink Darrick J. Wong
2015-06-30  4:16 ` [PATCH 10/11] test xfs-specific reflink pieces Darrick J. Wong
2015-06-30  4:16 ` [PATCH 11/11] reflink: test what happens when we hit resource limits Darrick J. Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).