]> git.baikalelectronics.ru Git - kernel.git/commit
md: Don't truncate size at 4TB for RAID0 and Linear
authorNeilBrown <neilb@suse.de>
Thu, 16 Aug 2012 06:46:12 +0000 (16:46 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 16 Aug 2012 06:46:12 +0000 (16:46 +1000)
commite3abe9125a012ac126b794d4707caabd3f563408
tree415fa369a5568710c35b6bec225777631fbdef71
parentdde762d5e7a1fb234d670e75ab8ffe3b4780e644
md: Don't truncate size at 4TB for RAID0 and Linear

commit ac2cb2f8c35fb2c6b319083e785282113aad328e
   md: Fix handling for devices from 2TB to 4TB in 0.90 metadata.

changed 0.90 metadata handling to truncated size to 4TB as that is
all that 0.90 can record.
However for RAID0 and Linear, 0.90 doesn't need to record the size, so
this truncation is not needed and causes working arrays to become too small.

So avoid the truncation for RAID0 and Linear

This bug was introduced in 3.1 and is suitable for any stable kernels
from then onwards.
As the offending commit was tagged for 'stable', any stable kernel
that it was applied to should also get this patch.  That includes
at least 2.6.32, 2.6.33 and 3.0. (Thanks to Ben Hutchings for
providing that list).

Cc: stable@vger.kernel.org
Signed-off-by: Neil Brown <neilb@suse.de>
drivers/md/md.c