btrfs: Add regression test to check if btrfs can handle high devid
authorQu Wenruo <wqu@suse.com>
Thu, 3 Oct 2019 07:53:50 +0000 (15:53 +0800)
committerEryu Guan <guaneryu@gmail.com>
Sat, 5 Oct 2019 17:47:03 +0000 (01:47 +0800)
commitc0eab1ea2317563d79e4eb849aa464d5c818cd20
tree8c1779869348a0ef1c1674f9c71e0b662799abf7
parentf45d9b2fecd1c7768c16b73ae23dd278b813c4b7
btrfs: Add regression test to check if btrfs can handle high devid

Add a regression test to check if btrfs can handle high devid.

The test will add and remove devices to a btrfs fs, so that the devid
will increase to uncommon but still valid values.

The regression is introduced by kernel commit ab4ba2e13346 ("btrfs:
tree-checker: Verify dev item").
The fix is titled "btrfs: tree-checker: Fix wrong check on max devid".

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/btrfs/194 [new file with mode: 0755]
tests/btrfs/194.out [new file with mode: 0644]
tests/btrfs/group