Grow: make warning about old metadata more explicit.

Don't print it just when --verbose is set, and explain how
to over-ride it.

Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
NeilBrown 2012-10-03 14:44:20 +10:00
parent 1f9b0e2845
commit 676ab3120b
1 changed files with 2 additions and 3 deletions

5
Grow.c
View File

@ -3775,9 +3775,8 @@ int Grow_restart(struct supertype *st, struct mdinfo *info, int *fdlist, int cnt
(unsigned long)__le64_to_cpu(bsb.mtime),
(unsigned long)info->array.utime);
} else {
if (verbose)
pr_err("too-old timestamp on "
"backup-metadata on %s\n", devname);
pr_err("too-old timestamp on backup-metadata on %s\n", devname);
pr_err("If you think it is should be safe, try 'export MDADM_GROW_ALLOW_OLD=1'\n");
continue; /* time stamp is too bad */
}
}