From: NeilBrown Date: Wed, 20 Apr 2011 05:38:18 +0000 (+1000) Subject: md: Fix dev_sectors on takeover from raid0 to raid4/5 X-Git-Tag: v2.6.39-rc5~37^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b71bd9337b404baab5c894e066be6b6bf51b1c3;p=pandora-kernel.git md: Fix dev_sectors on takeover from raid0 to raid4/5 A raid0 array doesn't set 'dev_sectors' as each device might contribute a different number of sectors. So when converting to a RAID4 or RAID5 we need to set dev_sectors as they need the number. We have already verified that in fact all devices do contribute the same number of sectors, so use that number. Signed-off-by: NeilBrown --- Reading git-diff-tree failed