Files
apfstests/tests/btrfs/026.out
T
Koen De Wit c8d9f19638 btrfs: simple sparse copy testcase for btrfs
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>
2014-01-20 13:56:34 +11:00

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