search for: min_strip

Displaying 3 results from an estimated 3 matches for "min_strip".

Did you mean: mimestrip
2011 May 02
5
[PATCH v3 0/3] btrfs: quasi-round-robin for chunk allocation
In a multi device setup, the chunk allocator currently always allocates chunks on the devices in the same order. This leads to a very uneven distribution, especially with RAID1 or RAID10 and an uneven number of devices. This patch always sorts the devices before allocating, and allocates the stripes on the devices with the most available space, as long as there is enough space available. In a low
2011 Apr 12
3
[PATCH v2 0/3] btrfs: quasi-round-robin for chunk allocation
In a multi device setup, the chunk allocator currently always allocates chunks on the devices in the same order. This leads to a very uneven distribution, especially with RAID1 or RAID10 and an uneven number of devices. This patch always sorts the devices before allocating, and allocates the stripes on the devices with the most available space, as long as there is enough space available. In a low
2009 Aug 05
3
RAID[56] with arbitrary numbers of "parity" stripes.
...eturn calc_size * (num_stripes - 2); + else if (type & BTRFS_BLOCK_GROUP_RAID56) + return calc_size * (num_stripes - (type >> 56)); else return calc_size * num_stripes; } @@ -2209,17 +2199,11 @@ static int __btrfs_alloc_chunk(struct btrfs_trans_handle *trans, sub_stripes = 2; min_stripes = 4; } - if (type & (BTRFS_BLOCK_GROUP_RAID5)) { - num_stripes = fs_devices->rw_devices; - if (num_stripes < 2) - return -ENOSPC; - min_stripes = 2; - } - if (type & (BTRFS_BLOCK_GROUP_RAID6)) { + if (type & (BTRFS_BLOCK_GROUP_RAID56)) { num_stripes = fs_devices->rw...