]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
btrfs: test that we can not delete a subvolume with an active swap file
authorFilipe Manana <fdmanana@suse.com>
Fri, 2 Sep 2022 09:30:32 +0000 (10:30 +0100)
committerZorro Lang <zlang@kernel.org>
Tue, 20 Sep 2022 07:35:36 +0000 (15:35 +0800)
commita945da31e759a7482a0d3087b825af674acdc3ad
tree17c602db012b0f26ca78cbc3d78a119ab7f4f732
parent890c50823b6430bf0929d9a57e76b9b4d6bbc25f
btrfs: test that we can not delete a subvolume with an active swap file

Verify that we can not delete a subvolume that has an active swap file,
and that after disabling the swap file, we can delete it.

This tests a fix done by kernel commit 60021bd754c6ca ("btrfs: prevent
subvol with swapfile from being deleted"), which landed in kernel 5.18.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Reivewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/btrfs/274 [new file with mode: 0755]
tests/btrfs/274.out [new file with mode: 0644]