1
fix pdc metadata format handler to report the proper number of devices in a subset
2
--- a/1.0.0.rc16/lib/format/ataraid/pdc.c
3
+++ b/1.0.0.rc16/lib/format/ataraid/pdc.c
4
@@ -490,7 +490,9 @@ devices(struct raid_dev *rd, void *conte
5
if (context && pdc->raid.type != PDC_T_SPAN)
6
*((uint64_t *) context) += rd->sectors;
8
- return pdc->raid.total_disks;
9
+ return is_raid10(pdc) ?
10
+ pdc->raid.total_disks / 2 :
11
+ pdc->raid.total_disks;