]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Enable error message in case of lack of spares for grow
authorKrzysztof Wojcik <krzysztof.wojcik@intel.com>
Wed, 2 Mar 2011 16:33:01 +0000 (17:33 +0100)
committerNeilBrown <neilb@suse.de>
Mon, 7 Mar 2011 22:52:44 +0000 (09:52 +1100)
When we cannot find spare devices for grow operation we should
print error message.
This patch changes debug error message to 'stderr' print.

Signed-off-by: Krzysztof Wojcik <krzysztof.wojcik@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
super-intel.c

index 1a7be7130f4c7919e798678242987ca1dd75dae5..86e6bd4f1780a5608b9ff2a65b1e752a21817893 100644 (file)
@@ -6885,7 +6885,8 @@ static int imsm_create_metadata_update_for_reshape(
 
        if (spares == NULL
            || delta_disks > spares->array.spare_disks) {
-               dprintf("imsm: ERROR: Cannot get spare devices.\n");
+               fprintf(stderr, Name ": imsm: ERROR: Cannot get spare devices "
+                       "for %s.\n", geo->dev_name);
                goto abort;
        }