mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
7b564f39ef
Regression test for btrfs ioctl clone operation + fsync + log
recovery. The issue was that doing an fsync after cloning into
a file didn't gave any persistence guarantees as it should.
What happened was that the in memory metadata (extent maps)
weren't updated, which made the fsync code not able to detect
that file data has been changed and must be persisted to the
log.
This issue is fixed by the following linux kernel btrfs patch:
Btrfs: make fsync work after cloning into a file
Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
130 lines
4.6 KiB
Plaintext
130 lines
4.6 KiB
Plaintext
QA output created by 056
|
|
Testing without the NO_HOLES feature
|
|
wrote 8192/8192 bytes at offset 0
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
wrote 8192/8192 bytes at offset 8192
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
wrote 8192/8192 bytes at offset 24576
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
wrote 8192/8192 bytes at offset 32768
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
wrote 98304/98304 bytes at offset 0
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
wrote 3500/3500 bytes at offset 0
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
wrote 1000/1000 bytes at offset 0
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
Verifying file bar content
|
|
0000000 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02
|
|
*
|
|
0010000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
*
|
|
0030000 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04
|
|
*
|
|
0050000 05 05 05 05 05 05 05 05 05 05 05 05 05 05 05 05
|
|
*
|
|
0060000 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
|
|
*
|
|
0300000
|
|
Verifying file bar2 content
|
|
0000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
*
|
|
0006640 00 00 00 00 00 00 00 00 00 00 00 00
|
|
0006654
|
|
Testing without the NO_HOLES feature and compression (lzo)
|
|
wrote 8192/8192 bytes at offset 0
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
wrote 8192/8192 bytes at offset 8192
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
wrote 8192/8192 bytes at offset 24576
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
wrote 8192/8192 bytes at offset 32768
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
wrote 98304/98304 bytes at offset 0
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
wrote 3500/3500 bytes at offset 0
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
wrote 1000/1000 bytes at offset 0
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
Verifying file bar content
|
|
0000000 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02
|
|
*
|
|
0010000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
*
|
|
0030000 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04
|
|
*
|
|
0050000 05 05 05 05 05 05 05 05 05 05 05 05 05 05 05 05
|
|
*
|
|
0060000 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
|
|
*
|
|
0300000
|
|
Verifying file bar2 content
|
|
0000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
*
|
|
0006640 00 00 00 00 00 00 00 00 00 00 00 00
|
|
0006654
|
|
Testing with the NO_HOLES feature enabled
|
|
wrote 8192/8192 bytes at offset 0
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
wrote 8192/8192 bytes at offset 8192
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
wrote 8192/8192 bytes at offset 24576
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
wrote 8192/8192 bytes at offset 32768
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
wrote 98304/98304 bytes at offset 0
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
wrote 3500/3500 bytes at offset 0
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
wrote 1000/1000 bytes at offset 0
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
Verifying file bar content
|
|
0000000 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02
|
|
*
|
|
0010000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
*
|
|
0030000 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04
|
|
*
|
|
0050000 05 05 05 05 05 05 05 05 05 05 05 05 05 05 05 05
|
|
*
|
|
0060000 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
|
|
*
|
|
0300000
|
|
Verifying file bar2 content
|
|
0000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
*
|
|
0006640 00 00 00 00 00 00 00 00 00 00 00 00
|
|
0006654
|
|
Testing with the NO_HOLES feature enabled and compression (lzo)
|
|
wrote 8192/8192 bytes at offset 0
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
wrote 8192/8192 bytes at offset 8192
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
wrote 8192/8192 bytes at offset 24576
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
wrote 8192/8192 bytes at offset 32768
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
wrote 98304/98304 bytes at offset 0
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
wrote 3500/3500 bytes at offset 0
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
wrote 1000/1000 bytes at offset 0
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
Verifying file bar content
|
|
0000000 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02
|
|
*
|
|
0010000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
*
|
|
0030000 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04
|
|
*
|
|
0050000 05 05 05 05 05 05 05 05 05 05 05 05 05 05 05 05
|
|
*
|
|
0060000 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
|
|
*
|
|
0300000
|
|
Verifying file bar2 content
|
|
0000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
*
|
|
0006640 00 00 00 00 00 00 00 00 00 00 00 00
|
|
0006654
|