mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
generic: Add copy to new file test
This test copies data from various points in a source file to a new file. This is useful for testing the basics of copy_file_range(). Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
committed by
Eryu Guan
parent
763008fd88
commit
330ba8b3c3
@@ -0,0 +1,25 @@
|
||||
QA output created by 430
|
||||
Create the original file and then copy
|
||||
Original md5sums:
|
||||
e11fbace556cba26bf0076e74cab90a3 TEST_DIR/test-430/file
|
||||
e11fbace556cba26bf0076e74cab90a3 TEST_DIR/test-430/copy
|
||||
Copy beginning of original file
|
||||
md5sums after copying beginning:
|
||||
e11fbace556cba26bf0076e74cab90a3 TEST_DIR/test-430/file
|
||||
cabe45dcc9ae5b66ba86600cca6b8ba8 TEST_DIR/test-430/beginning
|
||||
Copy middle of original file
|
||||
md5sums after copying middle:
|
||||
e11fbace556cba26bf0076e74cab90a3 TEST_DIR/test-430/file
|
||||
4197de9da5badfc302715486b82bcdf1 TEST_DIR/test-430/middle
|
||||
Copy end of original file
|
||||
md5sums after copying end:
|
||||
e11fbace556cba26bf0076e74cab90a3 TEST_DIR/test-430/file
|
||||
e68d4a150c4e42f4f9ea3ffe4c9cf4ed TEST_DIR/test-430/end
|
||||
Copy beyond end of original file
|
||||
md5sums after copying beyond:
|
||||
e11fbace556cba26bf0076e74cab90a3 TEST_DIR/test-430/file
|
||||
e68d4a150c4e42f4f9ea3ffe4c9cf4ed TEST_DIR/test-430/beyond
|
||||
Copy creates hole in target file
|
||||
md5sums after creating hole:
|
||||
e11fbace556cba26bf0076e74cab90a3 TEST_DIR/test-430/file
|
||||
3ae9aef0992f8cb51c90c9a0ff2dd9d2 TEST_DIR/test-430/hole
|
||||
Reference in New Issue
Block a user