btrfs-progs: Introduce btrfs_raid_array and related infrastructures
authorQu Wenruo <wqu@suse.com>
Fri, 9 Feb 2018 07:44:22 +0000 (15:44 +0800)
committerDavid Sterba <dsterba@suse.com>
Sat, 24 Feb 2018 00:37:17 +0000 (01:37 +0100)
commit12becfe1220bb4e45e529d4d2363394431605deb
tree15ed445d1ffaaa877a10f63b7eafea273188481a
parente9097ad59321f30e05bbc0cd1b41224b26125088
btrfs-progs: Introduce btrfs_raid_array and related infrastructures

As part of the effort to unify code and behavior between btrfs-progs and
kernel, copy the btrfs_raid_array from kernel to btrfs-progs.

So later we can use the btrfs_raid_array[] to get needed raid info other
than manually do if-else branches.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
ctree.h
volumes.c
volumes.h