From ea0ebe96859ce53230ac28c25e3ab2a8ccd3aa3b Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Tue, 20 Oct 2009 16:23:45 +1100 Subject: Assemble: print more verbose messages about restarting a reshape Signed-off-by: NeilBrown --- Assemble.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Assemble.c') diff --git a/Assemble.c b/Assemble.c index 7c3a249..8423a81 100644 --- a/Assemble.c +++ b/Assemble.c @@ -963,6 +963,10 @@ int Assemble(struct supertype *st, char *mddev, if (content->reshape_active) { int err = 0; int *fdlist = malloc(sizeof(int)* bestcnt); + if (verbose) + fprintf(stderr, Name ":%s has an active reshape - checking " + "if critical section needs to be restored\n", + chosen_name); for (i=0; i= 0) { @@ -977,7 +981,7 @@ int Assemble(struct supertype *st, char *mddev, fdlist[i] = -1; } if (!err) - err = Grow_restart(st, content, fdlist, bestcnt, backup_file); + err = Grow_restart(st, content, fdlist, bestcnt, backup_file, verbose); while (i>0) { i--; if (fdlist[i]>=0) close(fdlist[i]); -- cgit