mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
8694a9b144
Test that if we truncate a file to reduce its size, rename it and then fsync it, after a power failure the file has a correct size and name. This test is motivated by a bug found in btrfs, which is fixed by a patch for the linux kernel titled: "Btrfs: fix incorrect file size after shrinking truncate and fsync" This test currently passes on ext4, xfs, f2fs and patched btrfs. Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: Eryu Guan <guaneryu@gmail.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
9 lines
250 B
Plaintext
9 lines
250 B
Plaintext
QA output created by 534
|
|
wrote 8000/8000 bytes at offset 0
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
File content after power failure:
|
|
0000000 ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab
|
|
*
|
|
0002992 ab ab ab ab ab ab ab ab
|
|
0003000
|