diff options
author | NeilBrown <neilb@suse.de> | 2011-04-20 15:38:18 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-04-20 15:38:18 +1000 |
commit | 3b71bd9337b404baab5c894e066be6b6bf51b1c3 (patch) | |
tree | 23d29cf358319194092c41ed4748908e1b301180 /drivers/md/dm-snap.c | |
parent | 2b7da309ffe602d222558cee4d7e407b96e34b3a (diff) | |
download | linux-3b71bd9337b404baab5c894e066be6b6bf51b1c3.tar.gz |
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 <neilb@suse.de>
Diffstat (limited to 'drivers/md/dm-snap.c')
0 files changed, 0 insertions, 0 deletions