summaryrefslogtreecommitdiffstats
path: root/mdmon.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-04-29 16:14:30 +1000
committerNeilBrown <neilb@suse.de>2010-04-29 16:14:30 +1000
commit200871adf9e15d5ad985f28c349fd89c386ef48a (patch)
tree0c26b071611cb666bc2a4c81057a66ab979ce388 /mdmon.c
parent691c6ee1b6bb77bc44a5474d856771b0aec9882d (diff)
downloadmdadm-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