]> git.baikalelectronics.ru Git - kernel.git/commit
Correct allowed raid levels on balance.
authorAndreas Philipp <philipp.andreas@gmail.com>
Sat, 11 May 2013 11:13:03 +0000 (11:13 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Sat, 18 May 2013 01:40:20 +0000 (21:40 -0400)
commit98e78a3f4545d8bb2a6a6b2522f003f4064184ab
tree28854bca8fabdb3d7f24c0d982a6aaee09d7223d
parent36097435cd72d89e195eeab148f3dafe53ac1c97
Correct allowed raid levels on balance.

Raid5 with 3 devices is well defined while the old logic allowed
raid5 only with a minimum of 4 devices when converting the block group
profile via btrfs balance. Creating a raid5 with just three devices
using mkfs.btrfs worked always as expected. This is now fixed and the
whole logic is rewritten.

Signed-off-by: Andreas Philipp <philipp.andreas@gmail.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/volumes.c