xfs: regression tests for reflink quota bugs

Add three tests to look for quota bugs in xfs reflink. The first
test looks for problems when we have speculative cow reservations in
memory, we chown the file, but the reservations don't move to the
new owner.  The second test checks that we remembered to dqattach
the inodes before performing reflink operations. The third is a
stress test for reflink quota handling near enospc and helped us to
find a directio cow write corruption bug when free space is
fragmented.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
Darrick J. Wong
2018-02-07 13:19:38 -08:00
committed by Eryu Guan
parent 60ba1274f5
commit f2d7e7573b
7 changed files with 339 additions and 0 deletions
+3
View File
@@ -437,3 +437,6 @@
437 auto quick other
438 auto quick quota dangerous
439 auto quick fuzzers log
440 auto quick clone quota
441 auto quick clone quota
442 auto stress clone quota