]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Make sure reshape_active is cleared by getinfo_super
authorNeilBrown <neilb@suse.de>
Tue, 9 Mar 2010 05:15:29 +0000 (16:15 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 9 Mar 2010 05:15:29 +0000 (16:15 +1100)
There were cases where --detail would report phantom reshapes.

Signed-off-by: NeilBrown <neilb@suse.de>
super-ddf.c
super-intel.c

index c2c562f1ec19d37cae50016cc612a03b02ad55bf..b1cb268960616209d3cd8c7c87f8d705c93e2e94 100644 (file)
@@ -1434,6 +1434,7 @@ static void getinfo_super_ddf_bvd(struct supertype *st, struct mdinfo *info)
 
        info->recovery_start = MaxSector;
        info->resync_start = 0;
+       info->reshape_active = 0;
        if (!(ddf->virt->entries[info->container_member].state
              & DDF_state_inconsistent)  &&
            (ddf->virt->entries[info->container_member].init_state
index bbdcb511a43e0ecab7ad0987fd64d9585ad14656..73b1db7e4c4a6ac4b5f8f40eee5a21d9e0543f23 100644 (file)
@@ -1453,6 +1453,7 @@ static void getinfo_super_imsm_volume(struct supertype *st, struct mdinfo *info)
        info->component_size      = __le32_to_cpu(map->blocks_per_member);
        memset(info->uuid, 0, sizeof(info->uuid));
        info->recovery_start = MaxSector;
+       info->reshape_active = 0;
 
        if (map->map_state == IMSM_T_STATE_UNINITIALIZED || dev->vol.dirty) {
                info->resync_start = 0;