reflink: test the various fallocate modes

Check that the variants of fallocate (allocate, punch, zero range,
collapse range, insert range) do the right thing when they're run
against a range of reflinked blocks.

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:37 +11:00
committed by Dave Chinner
parent 6a4e8b81d9
commit c84e01bac3
13 changed files with 924 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
QA output created by 148
Create the original files
f924bdda449af63913cad4357e39301e TEST_DIR/test-148/file1
f924bdda449af63913cad4357e39301e TEST_DIR/test-148/file2
f924bdda449af63913cad4357e39301e TEST_DIR/test-148/file3
16cb529abe447a9f203a3d5eb3433c8b TEST_DIR/test-148/file2.chk
6f042ad39f6c74f4b73936db89baa2e2 TEST_DIR/test-148/file3.chk
truncate files
Compare files
f924bdda449af63913cad4357e39301e TEST_DIR/test-148/file1
16cb529abe447a9f203a3d5eb3433c8b TEST_DIR/test-148/file2
6f042ad39f6c74f4b73936db89baa2e2 TEST_DIR/test-148/file3
16cb529abe447a9f203a3d5eb3433c8b TEST_DIR/test-148/file2.chk
6f042ad39f6c74f4b73936db89baa2e2 TEST_DIR/test-148/file3.chk
Compare against check files