btrfs: test delayed subvolume deletion on mount and remount
authorFilipe Manana <fdmanana@suse.com>
Tue, 16 Mar 2021 16:54:28 +0000 (16:54 +0000)
committerEryu Guan <guaneryu@gmail.com>
Wed, 17 Mar 2021 17:39:26 +0000 (01:39 +0800)
commit40f8dc416af3649fa1fe285c14f450f93e898780
tree17a51a0d7092ec9336b1c3d71a2662051a2cb844
parent8275832d678261b302cc146dfd7f65dec9379281
btrfs: test delayed subvolume deletion on mount and remount

Test that subvolume deletion is resumed on RW mounts, that it is not
performed on RO mounts and that after remounting a filesystem from RO
to RW mode, it is also performed.

This triggers a regression introduced in kernel 5.11 which is fixed
by a patch that has the following subject:

   "btrfs: fix subvolume/snapshot deletion not triggered on mount"

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/233 [new file with mode: 0755]
tests/btrfs/233.out [new file with mode: 0644]
tests/btrfs/group