]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
btrfs/023: skip trying to test raid56 without kernel support
authorJeff Mahoney <jeffm@suse.com>
Mon, 21 Jan 2019 16:33:14 +0000 (11:33 -0500)
committerEryu Guan <guaneryu@gmail.com>
Sun, 27 Jan 2019 05:30:35 +0000 (13:30 +0800)
Older kernels don't support raid56.  This test is still valid for
other profiles, so skip raid56 if the kernel doesn't support it.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/btrfs/023

index 6d9cc443cea3abb40f1c1412ce2dbf487d4d76a9..6c02113ba37a78caed0b7ab25d4285786086b660 100755 (executable)
@@ -63,11 +63,13 @@ check_group_profile "RAID1"
 create_group_profile "raid10"
 check_group_profile "RAID10"
 
-create_group_profile "raid5"
-check_group_profile "RAID5"
+if [ -e "/sys/fs/btrfs/features/raid56" ]; then
+       create_group_profile "raid5"
+       check_group_profile "RAID5"
 
-create_group_profile "raid6"
-check_group_profile "RAID6"
+       create_group_profile "raid6"
+       check_group_profile "RAID6"
+fi
 
 # success, all done
 echo "Silence is golden"