Skip to content
Commit 3b71bd93 authored by NeilBrown's avatar NeilBrown
Browse files

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: default avatarNeilBrown <neilb@suse.de>
parent 2b7da309
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment