allocate_space
int allocate_space(struct disklabel *, const struct alloc_table *);
if (allocate_space(&label, &alloc_table[i]) == 0) {