Lines Matching refs:vt
130 static int32_t sup_prxfile(char *file_name, struct extvtoc *vt);
131 static int32_t sup_setpart(struct extvtoc *vt);
140 struct extvtoc *vt);
154 sup_prxfile(char *file_name, struct extvtoc *vt)
202 ret_val = sup_setpart(vt);
429 sup_setpart(struct extvtoc *vt)
651 vt->v_part[index].p_start = val1;
652 vt->v_part[index].p_size = val2;
654 vt->v_part[index].p_tag = vtoc_tag;
658 vt->v_part[index].p_flag = vtoc_flag;
789 struct extvtoc *vt)
797 (void) memset(vt, 0, sizeof (*vt));
800 vt->v_part[0].p_tag = V_ROOT;
801 vt->v_part[1].p_tag = V_SWAP;
802 vt->v_part[2].p_tag = V_BACKUP;
803 vt->v_part[6].p_tag = V_USR;
805 vt->v_part[1].p_flag = V_UNMNT; /* Unmountable */
806 vt->v_part[2].p_flag = V_UNMNT; /* Unmountable */
809 ret_val = sup_prxfile(file_name, vt);
818 DPRINTF1("\t start %llu", vt->v_part[i].p_start);
819 DPRINTF1("\t size %llu ", vt->v_part[i].p_size);
820 DPRINTF1("\t tag %d", vt->v_part[i].p_tag);
821 DPRINTF1("\t flag %d", vt->v_part[i].p_flag);
825 if (check_vtoc_sanity(handle, fd, vt) < 0) {
833 DPRINTF1("\t start %llu", vt->v_part[i].p_start);
834 DPRINTF1("\t size %llu ", vt->v_part[i].p_size);
835 DPRINTF1("\t tag %d", vt->v_part[i].p_tag);
836 DPRINTF1("\t flag %d", vt->v_part[i].p_flag);
871 check_vtoc_sanity(smedia_handle_t handle, int32_t fd, struct extvtoc *vt)
976 if (vt->v_part[i].p_tag == V_BACKUP) {
977 if (vt->v_part[i].p_start != 0) {
983 backup_size = vt->v_part[i].p_size;
987 if (vt->v_part[i].p_size) {
990 if (vt->v_part[i].p_start % cyl_size) {
1000 part[j].start = vt->v_part[i].p_start;
1001 part[j].end = vt->v_part[i].p_start +
1002 vt->v_part[i].p_size -1;