mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
2348063442
Test that if we punch a hole in a file, with either a range that goes beyond the file's size or covers a file range that is already a hole, and that if after we do some buffered write operations that cover different parts of the hole, no warnings are emmitted in syslog/dmesg and the file's content is correct after remounting the filesystem. This test is motivated by a bug in btrfs that is manifested in kernel 4.12-rc1 onwards (the bug existed long time ago but was not so easy to expose before 4.12-rc1). The btrfs patch that fixes the issue is titled: "Btrfs: fix invalid extent maps due to hole punching". Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: Eryu Guan <eguan@redhat.com> Signed-off-by: Eryu Guan <eguan@redhat.com>
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
QA output created by 439
|
|
wrote 102400/102400 bytes at offset 0
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
wrote 102400/102400 bytes at offset 51200
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
wrote 51200/51200 bytes at offset 102400
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
wrote 314368/314368 bytes at offset 1032192
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
wrote 645120/645120 bytes at offset 1098752
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
wrote 470016/470016 bytes at offset 1093632
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
File f contents after remounting filesystem:
|
|
0000000 aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa
|
|
*
|
|
0144000 bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb
|
|
*
|
|
0310000 cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc
|
|
*
|
|
0454000
|
|
File f2 contents after remounting filesystem:
|
|
0000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
|
|
*
|
|
3740000 aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa
|
|
*
|
|
4130000 cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc
|
|
*
|
|
5756000 bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb bb
|
|
*
|
|
6516000
|