]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Grow: make warning about old metadata more explicit.
authorNeilBrown <neilb@suse.de>
Thu, 18 Oct 2012 04:38:34 +0000 (15:38 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 18 Oct 2012 04:38:34 +0000 (15:38 +1100)
Don't print it just when --verbose is set, and explain how
to over-ride it.

Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c

diff --git a/Grow.c b/Grow.c
index 8e3b5c0f80bf8f5e9790ae522258950e13bd204d..7a46e78094ad62ec2803104af5dfa401771d58a7 100644 (file)
--- a/Grow.c
+++ b/Grow.c
@@ -3755,9 +3755,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)
-                                       fprintf(stderr, Name ": too-old timestamp on "
-                                               "backup-metadata on %s\n", devname);
+                               fprintf(stderr, Name ": too-old timestamp on backup-metadata on %s\n", devname);
+                               fprintf(stderr, Name ": If you think it is should be safe, try 'export MDADM_GROW_ALLOW_OLD=1'\n");
                                continue; /* time stamp is too bad */
                        }
                }