]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Grow.c
FIX: size is passed incorrectly
authorKwolek, Adam <adam.kwolek@intel.com>
Wed, 12 Jan 2011 10:42:44 +0000 (21:42 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 12 Jan 2011 10:42:44 +0000 (21:42 +1100)
commitd8eb27f71a19b203e86d778a4edf92b2f0aaf5bb
treef2725d6c1e6822976536a2719c93d35399d5f6fc
parent3fa436ace267a11708b235593dca48a028fc6453
FIX: size is passed incorrectly

reshape_super() called from reshape_container() with size set to
info->component_size gives size in reshape_super == -2 due to unsigned
signed conversion (info->component_size is not initializes).

As size is not changed during container reshape '-1' value is passed
to indicate this.

Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c