]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
btrfs: test activating swapfile in the presence of snapshots
authorFilipe Manana <fdmanana@suse.com>
Tue, 20 Jun 2023 12:00:21 +0000 (13:00 +0100)
committerZorro Lang <zlang@kernel.org>
Fri, 7 Jul 2023 13:37:16 +0000 (21:37 +0800)
commitdb7fb78fda6960c853b12ae923a0e865a401edb8
treee88201e2d3ad5ae2e303a288c00c96de845d06b8
parent06cee93225c9f9ea41d04efd6af911f7abb6e6a1
btrfs: test activating swapfile in the presence of snapshots

Test that if we have a subvolume with a non-active swap file, we can not
activate it if there are any snapshots. Also test that after all the
snapshots are removed, we will be able to activate the swapfile.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/btrfs/293 [new file with mode: 0755]
tests/btrfs/293.out [new file with mode: 0644]