From dc02c4944eb6afa9096a139641cd7cbb3c5f9707 Mon Sep 17 00:00:00 2001 From: Fengguang Wu Date: Fri, 10 Nov 2017 14:10:08 +0800 Subject: [PATCH] btrfs: add raid5/6 support CC: Bob Liu Signed-off-by: Fengguang Wu --- jobs/fsmark-3hdd-raid.yaml | 11 ++++++++++- setup/fs | 2 ++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/jobs/fsmark-3hdd-raid.yaml b/jobs/fsmark-3hdd-raid.yaml index b0c7d0dbe..ead391d22 100644 --- a/jobs/fsmark-3hdd-raid.yaml +++ b/jobs/fsmark-3hdd-raid.yaml @@ -30,9 +30,18 @@ fs: fsmark.test_size: 130G +--- +md: +- BRAID0 +- BRAID5 +- BRAID6 +fs: btrfs + --- nr_threads: 64 -md: RAID5 +md: +- RAID5 +- BRAID5 fs: btrfs fsmark.test_size: 130G diff --git a/setup/fs b/setup/fs index 19997e427..466854406 100755 --- a/setup/fs +++ b/setup/fs @@ -48,6 +48,8 @@ fs_options() { is_btrfs_raid_levels() { [ "$fs" = 'btrfs' ] && [ "$raid_level" = 'braid0' -o \ "$raid_level" = 'braid1' -o \ + "$raid_level" = 'braid5' -o \ + "$raid_level" = 'braid6' -o \ "$raid_level" = 'braid10' ] }