summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-03-09 16:15:29 +1100
committerNeilBrown <neilb@suse.de>2010-03-09 16:15:29 +1100
commit624c5ad4cb7030f8039042ad442f919da8adad59 (patch)
treea4fd17a8457dcc7a2b1c88653326d905f4bc8a38
parentecdbb368f8ce8bdb710d124c9b5b5e021474a77d (diff)
downloadmdadm-624c5ad4cb7030f8039042ad442f919da8adad59.tar.gz
mdadm-624c5ad4cb7030f8039042ad442f919da8adad59.tar.xz
mdadm-624c5ad4cb7030f8039042ad442f919da8adad59.zip
Make sure reshape_active is cleared by getinfo_super
There were cases where --detail would report phantom reshapes. Signed-off-by: NeilBrown <neilb@suse.de>
-rw-r--r--super-ddf.c1
-rw-r--r--super-intel.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/super-ddf.c b/super-ddf.c
index c2c562f..b1cb268 100644
--- a/super-ddf.c
+++ b/super-ddf.c
@@ -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
diff --git a/super-intel.c b/super-intel.c
index bbdcb51..73b1db7 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -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;