[PATCH 04/16] FIX: prepare for new spares management

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

 



When grow uses new spares management from auto-rebuild
Disks list is not guaranteed to be in order.

Signed-off-by: Krzysztof Wojcik <krzysztof.wolcik@xxxxxxxxx>
---

 super-intel.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/super-intel.c b/super-intel.c
index 0a27836..bee28bc 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -7499,6 +7499,9 @@ static int imsm_reshape_array_manage_new_slots(struct intel_super *super,
 		int fd2;
 		int rv;
 
+		if (dl->index < 0)
+			continue;
+
 		dprintf("\tLooking at device %s (index = %i).\n",
 			dl->devname,
 			dl->index);

--
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