]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Grow: don't print message if unfreezing fails.
authorNeilBrown <neilb@suse.de>
Tue, 15 May 2012 02:12:58 +0000 (12:12 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 15 May 2012 02:12:58 +0000 (12:12 +1000)
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@dsl.sk>
Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c

diff --git a/Grow.c b/Grow.c
index 9350a07976552e2bb6d23f45e72dc2a1468980c7..8e3b5c0f80bf8f5e9790ae522258950e13bd204d 100644 (file)
--- 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);
        }
 }