While playing a bit with the RAID code, I've come up with some cleanups for the chunk allocatin in progs. It's not aligned to what we're doing in the kernel, but the code has diverged so much it is a daunting task to converge it again. Johannes Thumshirn (15): btrfs-progs: simplify minimal stripe number checking btrfs-progs: simplify assignment of number of RAID stripes btrfs-progs: introduce alloc_chunk_ctl structure btrfs-progs: cache number of devices for chunk allocation btrfs-progs: pass alloc_chunk_ctl to chunk_bytes_by_type btrfs-progs: introduce raid profile table for chunk allocation btrfs-progs: consolidate assignment of minimal stripe number btrfs-progs: consolidate assignment of sub_stripes btrfs-progs: consolidate setting of RAID1 stripes btrfs-progs: do table lookup for simple RAID profiles' num_stripes btrfs-progs: consolidate num_stripes sanity check btrfs-progs: compactify num_stripe setting in btrfs_alloc_chunk btrfs-progs: introduce init_alloc_chunk_ctl btrfs-progs: don't pretend RAID56 has a different stripe length btrfs-progs: consolidate num_stripes setting for striping RAID levels volumes.c | 261 +++++++++++++++++++++++++++++++----------------------- 1 file changed, 148 insertions(+), 113 deletions(-) -- 2.26.2
