btrfs: test balance and send running in parallel
authorFilipe Manana <fdmanana@suse.com>
Thu, 2 Dec 2021 10:19:47 +0000 (10:19 +0000)
committerEryu Guan <guaneryu@gmail.com>
Sun, 5 Dec 2021 14:27:30 +0000 (22:27 +0800)
commit25cc5bac2f97a7fbdb5f27b02eba4d9e9f44a5c7
treeee3deecdd07e6e2c20386da157973b5935b99073
parente9ee0888388ee38716753c4c619ebac67889613e
btrfs: test balance and send running in parallel

Test that send and balance can run in parallel, without failures and
producing correct results.

Before kernel 5.3 it was possible to run both operations in parallel,
however it was buggy and caused sporadic failures due to races, so it was
disabled in kernel 5.3 by commit 9e967495e0e0ae ("Btrfs: prevent send
failures and crashes due to concurrent relocation"). There is a now a
patch that enables both operations to safely run in parallel, and it has
the following subject:

    "btrfs: make send work with concurrent block group relocation"

This also serves the purpose of testing a succession of incremental send
operations, where we have a bunch of snapshots of the same subvolume and
we keep doing an incremental send using the previous snapshot as the
parent.

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