Skip to content

Commit

Permalink
btrfs: add raid5/6 support
Browse files Browse the repository at this point in the history
CC: Bob Liu <[email protected]>
Signed-off-by: Fengguang Wu <[email protected]>
  • Loading branch information
Fengguang Wu committed Nov 10, 2017
1 parent 45183d8 commit dc02c49
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 10 additions & 1 deletion jobs/fsmark-3hdd-raid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions setup/fs
Original file line number Diff line number Diff line change
Expand Up @@ -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' ]
}

Expand Down

1 comment on commit dc02c49

@liubogithub
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Please sign in to comment.