xfs: test xfs-specific reflink pieces

Check that the various XFS tools still work properly on reflinked XFSes.

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:56 +11:00
committed by Dave Chinner
parent f3965fde0a
commit 212adbab92
13 changed files with 726 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
QA output created by 132
Create the original file blocks
Create the reflink copies
TEST_DIR/test-132/file1 ---
TEST_DIR/test-132/file2 ---
TEST_DIR/test-132/file3 ---
TEST_DIR/test-132/file4 ---
funshare part of a file
TEST_DIR/test-132/file1 ---
TEST_DIR/test-132/file2 ---
TEST_DIR/test-132/file3 ---
TEST_DIR/test-132/file4 ---
funshare some of the copies
TEST_DIR/test-132/file1 ---
TEST_DIR/test-132/file2 No_COW
TEST_DIR/test-132/file3 No_COW
TEST_DIR/test-132/file4 ---
funshare the rest of the files
TEST_DIR/test-132/file1 No_COW
TEST_DIR/test-132/file2 No_COW
TEST_DIR/test-132/file3 No_COW
TEST_DIR/test-132/file4 No_COW
Rewrite the original file
TEST_DIR/test-132/file1 No_COW
TEST_DIR/test-132/file2 No_COW
TEST_DIR/test-132/file3 No_COW
TEST_DIR/test-132/file4 No_COW
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