Lines Matching defs:vtoc
49 #include <sys/vtoc.h>
148 findfree(struct dk_geom *geom, struct extvtoc *vtoc)
160 if (vtoc->v_nparts > V_NUMPAR) {
165 for (part = vtoc->v_part; part < vtoc->v_part + vtoc->v_nparts; ++part)
369 struct extvtoc vtoc;
391 if ((idx = readvtoc(fd, name, &vtoc)) == VT_ENOTSUP) {
401 freemap = findfree(&geom, &vtoc);
406 putfree(&vtoc, freemap);
411 puttable(&geom, &vtoc, freemap, devname,
432 putfree(struct extvtoc *vtoc, freemap_t *freemap)
444 for (idx = 0; idx < vtoc->v_nparts; ++idx) {
445 if (vtoc->v_part[idx].p_size == 0 && idx != 2)
475 puttable(struct dk_geom *geom, struct extvtoc *vtoc, freemap_t *freemap,
484 if (*vtoc->v_volume)
485 (void) printf(" (volume \"%.8s\")", vtoc->v_volume);
489 (void) printf("* %7u bytes/sector\n", vtoc->v_sectorsz);
516 for (idx = 0; idx < vtoc->v_nparts; ++idx) {
517 if (vtoc->v_part[idx].p_size == 0)
520 idx, vtoc->v_part[idx].p_tag, vtoc->v_part[idx].p_flag,
521 vtoc->v_part[idx].p_start, vtoc->v_part[idx].p_size,
522 vtoc->v_part[idx].p_start + vtoc->v_part[idx].p_size - 1);
608 readvtoc(int fd, char *name, struct extvtoc *vtoc)
612 if ((retval = read_extvtoc(fd, vtoc)) >= 0)