btrfs-progs: add dev maxs limit for btrfs_alloc_chunk in user space
authorGui Hecheng <guihc.fnst@cn.fujitsu.com>
Mon, 21 Apr 2014 12:13:32 +0000 (20:13 +0800)
committerDavid Sterba <dsterba@suse.cz>
Fri, 2 May 2014 15:04:23 +0000 (17:04 +0200)
commitff58a897eaf7100d85179ce0d976897554455c36
tree0f53a5b80bfca2a6e9a2fa67de30130924b638e9
parent4dbbcafd95f3371d9baef60fa3dd2083e4fb836a
btrfs-progs: add dev maxs limit for btrfs_alloc_chunk in user space

For RAID0,5,6,10,
For system chunk, there shouldn't be too many stripes to
make a btrfs_chunk that exceeds BTRFS_SYSTEM_CHUNK_ARRAY_SIZE
For data/meta chunk, there shouldn't be too many stripes to
make a btrfs_chunk that exceeds a leaf.

Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
volumes.c