diff options
author | NeilBrown <neilb@suse.de> | 2010-04-29 16:14:30 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-04-29 16:14:30 +1000 |
commit | 200871adf9e15d5ad985f28c349fd89c386ef48a (patch) | |
tree | 0c26b071611cb666bc2a4c81057a66ab979ce388 /mdmon.c | |
parent | 691c6ee1b6bb77bc44a5474d856771b0aec9882d (diff) | |
download | mdadm-200871adf9e15d5ad985f28c349fd89c386ef48a.tar.gz mdadm-200871adf9e15d5ad985f28c349fd89c386ef48a.tar.xz mdadm-200871adf9e15d5ad985f28c349fd89c386ef48a.zip |
Grow: avoid overflow of chunk sizes.
Chunks aren't particularly big, but when you could them in bytes
and multiply them together (as we do for calculating the backup
size for 'grow') they can overflow a 32bit int.
So group the division by 512 more closely with the
chunk size so were would need 30Meg chunks to come close to
overflowing 32bits.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdmon.c')
0 files changed, 0 insertions, 0 deletions