Files
apfstests/tests/btrfs/116.out
T
Filipe Manana 315e6b4ed4 fstests: btrfs, verify fitrim does not discard reserved device area
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>
2016-01-11 15:12:20 +11:00

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