mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
c8d9f19638
Tests file clone functionality of btrfs ("reflinks"):
- Reflink a file
- Reflink the reflinked file
- Modify the original file
- Modify the reflinked file
[sandeen: add helpers, make several mostly-cosmetic
changes to the original testcase]
Signed-off-by: Koen De Wit <koen.de.wit@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
17 lines
774 B
Plaintext
17 lines
774 B
Plaintext
QA output created by 026
|
|
Create the original file and reflink to copy1, copy2
|
|
Original md5sums:
|
|
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-026/original
|
|
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-026/copy1
|
|
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-026/copy2
|
|
Overwrite original file with new data
|
|
md5sums after overwriting original:
|
|
4a847a25439532bf48b68c9e9536ed5b TEST_DIR/test-026/original
|
|
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-026/copy1
|
|
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-026/copy2
|
|
Overwrite copy1 with different new data
|
|
md5sums after overwriting copy1:
|
|
4a847a25439532bf48b68c9e9536ed5b TEST_DIR/test-026/original
|
|
e271cd47d9f62ebc96cb4e67ae4d16db TEST_DIR/test-026/copy1
|
|
42d69d1a6d333a7ebdf64792a555e392 TEST_DIR/test-026/copy2
|