mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
315e6b4ed4
Verify that when a fitrim operation is made against a btrfs filesystem, the ranges [0, 64Kb[ and [68Kb, 1Mb[ of the device are not discarded, they remain with the content they had before the fitrim operation. These regions of the device are reserved for a boot loader to use at its will. In the 4.3 linux kernel we got a regression that allowed a fitrim operation to discard these reserved ranges of the device, resulting in the filesystem becoming unbootable after a fitrim. The issue is fixed by the following patch (targeted for 4.5 and 4.3/4.4 stable releases): "Btrfs: fix fitrim discarding device area reserved for boot loader's use" Signed-off-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
13 lines
415 B
Plaintext
13 lines
415 B
Plaintext
QA output created by 116
|
|
wrote 65536/65536 bytes at offset 0
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
wrote 978944/978944 bytes at offset 69632
|
|
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
Content of the ranges [0, 64Kb] and [68Kb, 1Mb[ after fitrim:
|
|
0000000 fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
|
*
|
|
0200000
|
|
0210000 fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
|
|
*
|
|
4000000
|