If the number of (data) slices changes, there's something seriously
wrong. So return an error if we detect this situation.
if (fg->h.group_num != h->group_num)
continue;
if (fg->h.slices_per_group != h->slices_per_group)
if (fg->h.group_num != h->group_num)
continue;
if (fg->h.slices_per_group != h->slices_per_group)
+ return -E_BAD_FEC_HEADER;
if (fg->h.data_slices_per_group != h->data_slices_per_group)
if (fg->h.data_slices_per_group != h->data_slices_per_group)
+ return -E_BAD_FEC_HEADER;
*result = fg;
return 1;
}
*result = fg;
return 1;
}