reflink: test CoW behaviors of reflinked files

Ensure that CoW happens correctly with buffered, directio, and mmap writes.

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:32 +11:00
committed by Dave Chinner
parent cc8e860cc9
commit 6a4e8b81d9
11 changed files with 715 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
QA output created by 140
Create the original files
Compare files
60ebe700450b6015c17fa15cacb9493b TEST_DIR/test-140/file1
60ebe700450b6015c17fa15cacb9493b TEST_DIR/test-140/file2
60ebe700450b6015c17fa15cacb9493b TEST_DIR/test-140/file3
mmap CoW the second file
Compare files
60ebe700450b6015c17fa15cacb9493b TEST_DIR/test-140/file1
795ecfd281dbda4916431376228e4187 TEST_DIR/test-140/file2
795ecfd281dbda4916431376228e4187 TEST_DIR/test-140/file3
Files 1-2 do not match (intentional)
Files 1-3 do not match (intentional)
Compare the CoW'd section to the before file
Start sections do not match (intentional)
Middle sections do not match (intentional)
End sections do not match (intentional)
Compare the CoW'd section to the after file
Compare the not CoW'd sections