Lines Matching defs:vtoc
147 * It is possible to present an efi label but be using vtoc
149 * disk in the underlying metadevice is a vtoc disk and starts
471 * free allocations in vtoc
505 if ((! nocache) && (dnp->vtoc.nparts != 0)) {
521 return (&dnp->vtoc);
524 /* can't get vtoc */
626 metafreevtoc(&dnp->vtoc);
627 meta_efi_to_mdvtoc(gpt, &dnp->vtoc);
628 if (dnp->vtoc.nparts > MD_MAX_PARTS) {
640 if (dnp->vtoc.nparts < V_NUMPAR) {
641 dnp->vtoc.nparts = V_NUMPAR;
664 struct extvtoc vtoc;
666 if (meta_getvtoc(fd, np->cname, &vtoc, &partno, ep) < 0) {
674 metafreevtoc(&dnp->vtoc);
675 meta_vtoc_to_md(&vtoc, &dnp->vtoc);
680 (dnp->vtoc.nparts == dnp->parts.parts_len)) {
686 assert(partno < dnp->vtoc.nparts);
691 return (&dnp->vtoc);
713 * Set the vtoc, but use the cached copy to get the info from.
714 * We write np->drivenamep->vtoc to disk.
715 * Before we can do this we read the vtoc in.
720 * dnp->vtoc (actually being a mdvtoc_t) into a vtoc_t
741 struct extvtoc vtoc;
743 if (meta_getvtoc(fd, np->cname, &vtoc, NULL, ep) < 0) {
748 meta_mdvtoc_to_vtoc(&dnp->vtoc, &vtoc);
750 if (meta_setvtoc(fd, np->cname, &vtoc, ep) < 0) {
759 meta_mdvtoc_to_efi(&dnp->vtoc, &gpt);
1182 metafreevtoc(&dnp->vtoc);