MAX_PARTS
struct ud_part part[MAX_PARTS];
uint32_t part_loc[MAX_PARTS];
uint32_t part_len[MAX_PARTS];
if (nparts > MAX_PARTS) {
MAX_PARTS);