mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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:
committed by
Dave Chinner
parent
cc8e860cc9
commit
6a4e8b81d9
@@ -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
|
||||
Reference in New Issue
Block a user