]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
fix: imsm: re-enable size expansion to the max value
authorLukasz Dorau <lukasz.dorau@intel.com>
Fri, 14 Sep 2012 14:04:08 +0000 (16:04 +0200)
committerNeilBrown <neilb@suse.de>
Thu, 20 Sep 2012 02:27:17 +0000 (12:27 +1000)
Size expansion to the 'max' value has been broken since
the following patch:

    commit d04f65f48c93e7e57cc3c1d70dd07d094dece717
    Change the values for "max size" from -1 to 1.

This patch re-enables it.

Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
super-intel.c

index d11eabdded262e138d1f0e1ca9fba163dce21174..1d366131cf841be9692e598be19a91d8ed3ce34f 100644 (file)
@@ -9737,7 +9737,7 @@ enum imsm_reshape_type imsm_analyze_change(struct supertype *st,
         */
        current_size = info.custom_array_size / data_disks;
 
-       if (geo->size > 0) {
+       if ((geo->size > 0) && (geo->size != MAX_SIZE)) {
                /* align component size
                 */
                geo->size = imsm_component_size_aligment_check(