NeilBrown: Grow: don't print message if unfreezing fails.

Michael Tokarev mjt at alioth.debian.org
Fri May 25 18:01:38 UTC 2012


Module: mdadm
Branch: master
Commit: c456301a05dcbb3267ef13cd83e10c6867ea34ea
URL:    http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=commit;h=c456301a05dcbb3267ef13cd83e10c6867ea34ea

Author: NeilBrown <neilb at suse.de>
Date:   Tue May 15 12:12:58 2012 +1000

Grow: don't print message if unfreezing fails.

This is most likely to happen if the array has been stopped,
in which case the error is pointless.

Reported-by: Patrik Horník <patrik at dsl.sk>
Signed-off-by: NeilBrown <neilb at suse.de>

---

 Grow.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/Grow.c b/Grow.c
index 9350a07..8e3b5c0 100644
--- a/Grow.c
+++ b/Grow.c
@@ -623,8 +623,6 @@ static void unfreeze(struct supertype *st)
 
 		if (sra)
 			sysfs_set_str(sra, NULL, "sync_action", "idle");
-		else
-			fprintf(stderr, Name ": failed to unfreeze array\n");
 		sysfs_free(sra);
 	}
 }




More information about the pkg-mdadm-commits mailing list