Enable error message in case of lack of spares for grow

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>
This commit is contained in:
Krzysztof Wojcik 2011-03-02 17:33:01 +01:00 committed by NeilBrown
parent c8826c3e47
commit e14e59602a
1 changed files with 2 additions and 1 deletions

View 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;
}