--- evms-2.4.0/plugins/md/raid1_discover.c.orig 2004-02-25 20:24:37 +0200 +++ evms-2.4.0/plugins/md/raid1_discover.c 2004-02-25 20:25:24 +0200 @@ -145,11 +145,20 @@ } if (!final_call && (volume->nr_disks != volume->super_block->nr_disks)) { + for (i = 0; i < volume->super_block->nr_disks; i ++) { + if (!volume->child_object[i]) { + LOG_WARNING("Volume %s currently has missed object, delaying discovery.\n", + volume->name); + LOG_EXIT_INT(0); + return 0; + } + } /* * It's not final discovery call and we have not found all the disks. * If we can find 1 active disk, create the region in "degraded" mode. * When missing objects arrive later, we will rediscover this region. */ + /* for (i = 0; i< MAX_MD_DEVICES; i++) { if (volume->child_object[i]) { if (disk_active(&volume->super_block->disks[i])) { @@ -165,6 +174,7 @@ LOG_EXIT_INT(0); return 0; } + */ } LOG_DETAILS("Discovered region %s.\n",volume->name);