Lines Matching defs:first_free_sec
469 fdisk_ext_find_first_free_sec(ext_part_t *epp, uint32_t *first_free_sec)
474 *first_free_sec = epp->ext_beg_sec;
482 * first_free_sec accordingly. In this case, the first extended
490 (*first_free_sec)++;
493 while (*first_free_sec <= epp->ext_end_sec) {
496 if (temp->abs_secnum == *first_free_sec) {
497 *first_free_sec = temp->abs_secnum +
503 *first_free_sec);
505 if ((last_free_sec - *first_free_sec) < MAX_LOGDRIVE_OFFSET) {
510 *first_free_sec = last_free_sec + 1;
517 if (*first_free_sec > epp->ext_end_sec) {
868 uint32_t first_free_sec;
872 rval = fdisk_ext_find_first_free_sec(epp, &first_free_sec);
877 first_free_cyl = FDISK_SECT_TO_CYL(epp, first_free_sec);
879 *begsec = first_free_sec;