]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
btrfs: Add test that checks rmdir(2) can delete a subvolume
authorMisono Tomohiro <misono.tomohiro@jp.fujitsu.com>
Wed, 13 Jun 2018 06:06:45 +0000 (15:06 +0900)
committerEryu Guan <guaneryu@gmail.com>
Wed, 13 Jun 2018 07:00:50 +0000 (15:00 +0800)
commite1ca827f833bca5e48b20bfeca7ac6ab455d6d3f
tree8b2925edf87260ed513f32735438a1d3047f9460
parent9618c0adca1a246d75d780cce5cd8cd56d0b3d7c
btrfs: Add test that checks rmdir(2) can delete a subvolume

Add btrfs test that checks "rmdir" or "rm -r" command can delete a
subvolume like an ordinary directory.

This behavior has been restricted long time but becomes allowed by
kernel commit a79a464d5675 ("btrfs: Allow rmdir(2) to delete an
empty subvolume")

The test will be skipped if kernel does not support the feature,
which can be checked whether /sys/fs/btrfs/features/rmdir_subvol
exists or not.

Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: Misono Tomohiro <misono.tomohiro@jp.fujitsu.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/btrfs/165 [new file with mode: 0755]
tests/btrfs/165.out [new file with mode: 0644]
tests/btrfs/group