Blame SOURCES/pdc_raid10_failure.patch

41b6f0
diff --git a/lib/format/ataraid/pdc.c.raid10_failure b/lib/format/ataraid/pdc.c
41b6f0
index b0bb652..8b14d71 100644
41b6f0
--- a/lib/format/ataraid/pdc.c
41b6f0
+++ b/lib/format/ataraid/pdc.c
41b6f0
@@ -490,7 +490,9 @@ devices(struct raid_dev *rd, void *context)
41b6f0
 	if (context && pdc->raid.type != PDC_T_SPAN)
41b6f0
 		*((uint64_t *) context) += rd->sectors;
41b6f0
 
41b6f0
-	return pdc->raid.total_disks;
41b6f0
+	return is_raid10(pdc) ?
41b6f0
+	       pdc->raid.total_disks / 2 :
41b6f0
+	       pdc->raid.total_disks;
41b6f0
 }
41b6f0
 
41b6f0
 static int