diff --git a/Assemble.c b/Assemble.c index adc4786..32e05b0 100644 --- a/Assemble.c +++ b/Assemble.c @@ -48,7 +48,7 @@ static int name_matches(char *found, char *required, char *homehost) static int is_member_busy(char *metadata_version) { /* check if the given member array is active */ - struct mdstat_ent *mdstat = mdstat_read(1, 0); + struct mdstat_ent *mdstat = mdstat_read(0, 0); struct mdstat_ent *ent; int busy = 0; diff --git a/config.c b/config.c index 5c8b03a..2c7bb63 100644 --- a/config.c +++ b/config.c @@ -150,7 +150,7 @@ struct mddev_dev *load_partitions(void) struct mddev_dev *load_containers(void) { - struct mdstat_ent *mdstat = mdstat_read(1, 0); + struct mdstat_ent *mdstat = mdstat_read(0, 0); struct mdstat_ent *ent; struct mddev_dev *d; struct mddev_dev *rv = NULL;