reflink: test accuracy of free block counts

Check that the free block counts seem to be handled correctly in
the reflink operation and subsequent attempts to rewrite reflinked
copies.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
Darrick J. Wong
2015-11-17 08:39:43 +11:00
committed by Dave Chinner
parent c84e01bac3
commit bed1fedae6
15 changed files with 798 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
QA output created by 156
Create the original file blocks
Create the reflink copies
funshare part of a file
funshare some of the copies
funshare the rest of the files
Rewrite the original file
free blocks after reflinking is in range
free blocks after nocow'ing some copies is in range
free blocks after nocow'ing all copies is in range
free blocks after overwriting original is in range
free blocks after all tests is in range