If error occurs mdadm exits with no information. Signed-off-by: Adam Kwolek <adam.kwolek@xxxxxxxxx> --- Grow.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/Grow.c b/Grow.c index 6e88d6d..eb0c7e0 100644 --- a/Grow.c +++ b/Grow.c @@ -1386,6 +1386,9 @@ int Grow_reshape(char *devname, int fd, int quiet, char *backup_file, count = reshape_container_raid_disks(container, raid_disks); if (count < 0) { revert_container_raid_disks(st, fd, container); + fprintf(stderr, Name + ": unable to set requested raid disks number = %i\n", + raid_disks); rv = 1; goto release; } else if (count == 0) { -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html