[PATCH 03/10] FIX: Add error code for raid_disks set

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux