summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-07-10 11:02:10 +1000
committerNeilBrown <neilb@suse.de>2013-07-10 11:02:10 +1000
commitb4924f46c04262e7e80aac27acc5848066393c52 (patch)
tree694dafd0f6f6c70906f9083d4f6ae274c2a4baae
parent3eff7c1d2fd658df69d8379cb87f3a766dd5ab5c (diff)
Don't set 'hold' option for mdstat_read if not needed.
We only need 'hold' if we want to mdstat_wait for a change. These two callers don't care about a change, so they shouldn't use the 'hold' flag. Signed-off-by: NeilBrown <neilb@suse.de>
-rw-r--r--Assemble.c2
-rw-r--r--config.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Assemble.c b/Assemble.c
index adc47866..32e05b03 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 5c8b03a3..2c7bb63c 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;