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:
parent
c8826c3e47
commit
e14e59602a
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue