mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
btrfs/023: skip trying to test raid56 without kernel support
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>
This commit is contained in:
+6
-4
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user