From 80d26cb2fd18f814e1493aae92357868e044ae8b Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Thu, 12 Jun 2008 10:13:26 +1000 Subject: [PATCH] Correctly set resync_start when creating an array. --- super-ddf.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/super-ddf.c b/super-ddf.c index 7c3974e..9dbadfb 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -1286,6 +1286,14 @@ static void getinfo_super_ddf_bvd(struct supertype *st, struct mdinfo *info) // info->disk.raid_disk = find refnum in the table and use index; // info->disk.state = ???; + info->resync_start = 0; + if (!(ddf->virt->entries[info->container_member].state + & DDF_state_inconsistent) && + (ddf->virt->entries[info->container_member].init_state + & DDF_initstate_mask) + == DDF_init_full) + info->resync_start = ~0ULL; + uuid_from_super_ddf(st, info->uuid); sprintf(info->text_version, "/%s/%d",