]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
imsm: FIX: local mdadm update shouldn't be done in update creation function.
authorAdam Kwolek <adam.kwolek@intel.com>
Wed, 12 Jan 2011 23:05:31 +0000 (10:05 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 12 Jan 2011 23:05:31 +0000 (10:05 +1100)
Local update is performed based on created update, so this code can broke
local update and it is not necessary as prepare and process update functions
are used.

Code removed.

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

index fbda7cefcf8ac32d35d66cc9b7df8ed7338574e6..594d6691fc001bf24b00690fa15730056e13fe76 100644 (file)
@@ -6492,19 +6492,6 @@ static int imsm_create_metadata_update_for_reshape(
                mpb->num_disks++;
                dev = dev->next;
        }
-       /* Now update the metadata so that container_content will find
-        * the new devices
-        */
-       for (i = 0; i < mpb->num_raid_devs; i++) {
-               int d;
-               struct imsm_dev *dev = get_imsm_dev(super, i);
-               struct imsm_map *map = get_imsm_map(dev, 0);
-               map->num_members = geo->raid_disks;
-               for (d = 0; d < delta_disks; d++) {
-                       set_imsm_ord_tbl_ent(map, old_raid_disks + d,
-                                            mpb->num_disks - delta_disks + d);
-               }
-       }
 
 abort:
        /* free spares