/illumos-gate/usr/src/lib/libefi/common/ |
H A D | rdwr_efi.c | 37 #include <sys/vtoc.h> 81 * Default vtoc information for non-SVr4 partitions 144 efi_alloc_and_init(int fd, uint32_t nparts, struct dk_gpt **vtoc) argument 178 if ((*vtoc = calloc(length, 1)) == NULL) 181 vptr = *vtoc; 205 efi_alloc_and_read(int fd, struct dk_gpt **vtoc) argument 215 if ((*vtoc = calloc(length, 1)) == NULL) 218 (*vtoc)->efi_nparts = nparts; 219 rval = efi_read(fd, *vtoc); 221 if ((rval == VT_EINVAL) && (*vtoc) 309 efi_read(int fd, struct dk_gpt *vtoc) argument 573 write_pmbr(int fd, struct dk_gpt *vtoc) argument 660 check_input(struct dk_gpt *vtoc) argument 843 efi_write(int fd, struct dk_gpt *vtoc) argument 1060 struct vtoc vtoc; local 1076 efi_err_check(struct dk_gpt *vtoc) argument 1171 efi_auto_sense(int fd, struct dk_gpt **vtoc) argument [all...] |
H A D | llib-lefi | 37 int efi_alloc_and_init(int fd, uint32_t nparts, struct dk_gpt **vtoc); 38 int efi_alloc_and_read(int fd, struct dk_gpt **vtoc); 39 int efi_write(int fd, struct dk_gpt *vtoc);
|
/illumos-gate/usr/src/lib/libadm/common/ |
H A D | llib-ladm | 32 #include <sys/vtoc.h>
|
H A D | rdwr_vtoc.c | 37 #include <sys/vtoc.h> 42 * To copy each field of vtoc individually for copying extvtoc 43 * to 32 bit vtoc and vs. 81 read_vtoc(int fd, struct vtoc *vtoc) argument 86 * Read the vtoc. 88 if (ioctl(fd, DKIOCGVTOC, (caddr_t)vtoc) == -1) { 105 * Sanity-check the vtoc. 107 if (vtoc->v_sanity != VTOC_SANE) { 112 * Convert older-style vtoc' 161 write_vtoc(int fd, struct vtoc *vtoc) argument [all...] |
/illumos-gate/usr/src/cmd/hal/utils/ |
H A D | fsutils.h | 16 #include <sys/vtoc.h> 24 boolean_t vtoc_one_slice_entire_disk(struct extvtoc *vtoc);
|
/illumos-gate/usr/src/cmd/format/ |
H A D | label.c | 36 #include <sys/vtoc.h> 63 static int vtoc_to_label(struct dk_label *label, struct extvtoc *vtoc, 228 err_print("SMI vtoc to EFI failed\n"); 275 struct extvtoc vtoc; local 346 * Fill in the vtoc information 348 label.dkl_vtoc = cur_parts->vtoc; 356 * Put asciilabel in; on x86 it's in the vtoc, not the label. 374 * Convert the label into a vtoc 376 if (label_to_vtoc(&vtoc, &label) == -1) { 382 * we do this before writing the vtoc 487 struct extvtoc vtoc; local 694 vtoc64_to_label(struct efi_info *label, struct dk_gpt *vtoc) argument 747 vtoc_to_label(struct dk_label *label, struct extvtoc *vtoc, struct dk_geom *geom, struct dk_cinfo *cinfo) argument 893 label_to_vtoc(struct extvtoc *vtoc, struct dk_label *label) argument 991 struct extvtoc vtoc; local 1002 err_check(struct dk_gpt *vtoc) argument [all...] |
H A D | partition.c | 39 * Default vtoc information for non-SVr4 partitions 209 assert(cur_parts->vtoc.v_version == V_VERSION); 210 deflt = cur_parts->vtoc.v_part[num].p_tag; 215 deflt = cur_parts->vtoc.v_part[num].p_flag; 338 cur_parts->vtoc.v_part[num].p_start = (daddr_t)(i * (nhead * nsect)); 339 cur_parts->vtoc.v_part[num].p_size = (long)j; 345 assert(cur_parts->vtoc.v_version == V_VERSION); 346 cur_parts->vtoc.v_part[num].p_tag = (ushort_t)tag; 347 cur_parts->vtoc.v_part[num].p_flag = (ushort_t)flag; 455 pptr->vtoc [all...] |
H A D | menu_fdisk.c | 421 * reread the vtoc 433 if (cur_parts->vtoc.v_part[i].p_tag && 434 cur_parts->vtoc.v_part[i].p_tag != V_ALTSCTR) { 435 cur_parts->vtoc.v_part[i].p_start = 0; 436 cur_parts->vtoc.v_part[i].p_size = 0; 441 cur_parts->vtoc.v_part[i].p_tag = 443 cur_parts->vtoc.v_part[i].p_flag = 457 cur_parts->vtoc.v_part[C_PARTITION].p_start = 459 cur_parts->vtoc.v_part[C_PARTITION].p_size = 462 cur_parts->vtoc 621 struct vtoc vtoc; local [all...] |
H A D | auto_sense.c | 249 struct dk_gpt *vtoc; local 283 if (efi_alloc_and_init(fd, EFI_NUMPAR, &vtoc) != 0) { 288 label->e_parts = vtoc; 295 vtoc->efi_parts[0].p_tag = V_USR; 296 vtoc->efi_parts[0].p_start = vtoc->efi_first_u_lba; 297 vtoc->efi_parts[0].p_size = vtoc->efi_last_u_lba - vtoc->efi_first_u_lba 303 for (i = 1; i < vtoc 1453 struct dk_vtoc *vtoc; local [all...] |
/illumos-gate/usr/src/cmd/fmthard/ |
H A D | fmthard.c | 72 #include <sys/vtoc.h> 113 /* new vtoc and reboot. Used during */ 252 * Read the vtoc on the disk 358 * Shut system down after writing a new vtoc to disk 379 display(struct dk_geom *geom, struct extvtoc *vtoc, char *device) argument 388 if (*vtoc->v_volume) { 391 if ((c = vtoc->v_volume[i]) == 0) 412 if (vtoc->v_part[i].p_size > 0) 415 i, vtoc->v_part[i].p_tag, 416 vtoc 470 insert(char *data, struct extvtoc *vtoc) argument 532 load(FILE *fp, struct dk_geom *geom, struct extvtoc *vtoc) argument 701 validate(struct dk_geom *geom, struct extvtoc *vtoc) argument 863 vread(int fd, struct extvtoc *vtoc, char *devname) argument 906 vwrite(int fd, struct extvtoc *vtoc, char *devname) argument [all...] |
/illumos-gate/usr/src/uts/common/avs/ns/sv/ |
H A D | sv_efi.h | 37 * <sys/dkio.h> and <sys/vtoc.h> must have already been included. 41 #error sys/dkio.h or sys/vtoc.h has not been included
|
/illumos-gate/usr/src/uts/sun4v/sys/ |
H A D | vdsk_common.h | 40 #include <sys/vtoc.h> 381 * Copy the contents of a vd_vtoc_t to the contents of a vtoc struct 383 #define VD_VTOC2VTOC(vd_vtoc, vtoc) \ 385 bzero((vtoc), sizeof (*(vtoc))); \ 386 bcopy((vd_vtoc)->volume_name, (vtoc)->v_volume, \ 388 sizeof ((vtoc)->v_volume))); \ 389 bcopy((vd_vtoc)->ascii_label, (vtoc)->v_asciilabel, \ 391 sizeof ((vtoc)->v_asciilabel))); \ 392 (vtoc) [all...] |
/illumos-gate/usr/src/uts/common/avs/ns/nsctl/ |
H A D | nsc_ioctl.h | 34 #include <sys/vtoc.h> 89 uint64_t vtoc; /* (struct vtoc *) */ member in struct:nscioc_bsize
|
/illumos-gate/usr/src/cmd/prtvtoc/ |
H A D | prtvtoc.c | 49 #include <sys/vtoc.h> 148 findfree(struct dk_geom *geom, struct extvtoc *vtoc) argument 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; local 391 if ((idx = readvtoc(fd, name, &vtoc)) == VT_ENOTSUP) { 401 freemap = findfree(&geom, &vtoc); 406 putfree(&vtoc, freema 432 putfree(struct extvtoc *vtoc, freemap_t *freemap) argument 475 puttable(struct dk_geom *geom, struct extvtoc *vtoc, freemap_t *freemap, char *name, char **mtab) argument 608 readvtoc(int fd, char *name, struct extvtoc *vtoc) argument [all...] |
/illumos-gate/usr/src/lib/libsmedia/library/inc/ |
H A D | rmedia.h | 43 #include <sys/vtoc.h>
|
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | slice.c | 37 #include <sys/vtoc.h> 403 struct extvtoc vtoc; local 421 if ((status = read_extvtoc(fd, &vtoc)) >= 0) { 441 if (snum < 0 || snum >= vtoc.v_nparts || 442 vtoc.v_part[snum].p_size == 0) { 463 if (nvlist_add_uint64(attrs, DM_START, vtoc.v_part[snum].p_start) 468 if (nvlist_add_uint64(attrs, DM_SIZE, vtoc.v_part[snum].p_size) 473 if (nvlist_add_uint32(attrs, DM_TAG, vtoc.v_part[snum].p_tag) 478 if (nvlist_add_uint32(attrs, DM_FLAG, vtoc.v_part[snum].p_flag) 622 struct extvtoc vtoc; local 741 struct extvtoc vtoc; local 821 struct extvtoc vtoc; local [all...] |
H A D | media.c | 37 #include <sys/vtoc.h> 422 struct extvtoc vtoc; local 457 if (read_extvtoc(fd, &vtoc) >= 0 && vtoc.v_volume[0] != 0) { 461 LEN_DKL_VVOL, vtoc.v_volume); 549 struct extvtoc vtoc; local 551 if (read_extvtoc(fd, &vtoc) >= 0) { 552 if (vtoc.v_volume[0] != NULL) { 555 vtoc.v_volume, 559 vtoc [all...] |
/illumos-gate/usr/src/cmd/devinfo/ |
H A D | devinfo.c | 49 #include <sys/vtoc.h> 64 static int readvtoc(int fd, char *name, struct extvtoc *vtoc); 209 readvtoc(int fd, char *name, struct extvtoc *vtoc) argument 213 retval = read_extvtoc(fd, vtoc);
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | ramdisk.h | 33 #include <sys/vtoc.h> 219 struct vtoc rd_vtoc;
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | vds.c | 51 #include <sys/vtoc.h> 477 struct extvtoc vtoc; /* synthetic for slice type */ member in struct:vd 682 static void vd_vtocgeom_to_label(struct extvtoc *vtoc, struct dk_geom *geom, 684 static void vd_label_to_vtocgeom(struct dk_label *label, struct extvtoc *vtoc, 687 static boolean_t vd_slice_vtoc_isvalid(vd_t *vd, struct extvtoc *vtoc); 766 * If a file is exported as a slice then we don't care about the vtoc. 767 * In that case, the vtoc is a fake mainly to make newfs happy and we 801 ASSERT(vd->vtoc.v_sectorsz == DEV_BSIZE); 1068 * Set the vtoc of a disk image by writing the label and backup 1663 struct extvtoc vtoc; local 2859 vd_vtocgeom_to_label(struct extvtoc *vtoc, struct dk_geom *geom, struct dk_label *label) argument 2912 vd_label_to_vtocgeom(struct dk_label *label, struct extvtoc *vtoc, struct dk_geom *geom) argument 2983 vd_slice_vtoc_isvalid(vd_t *vd, struct extvtoc *vtoc) argument 3047 struct extvtoc *vtoc; local 3237 struct extvtoc *vtoc = &vd->vtoc; local 3292 struct extvtoc *vtoc; local 3404 struct vtoc vtoc; local 3608 struct extvtoc vtoc = {0}; local 6236 struct vtoc vtoc; local [all...] |
/illumos-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_nameinfo.c | 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 664 struct extvtoc vtoc; local 741 struct extvtoc vtoc; local [all...] |
/illumos-gate/usr/src/cmd/addbadsec/ |
H A D | addbadsec.c | 43 #include <sys/vtoc.h> 58 struct extvtoc vtoc; /* table of contents */ variable in typeref:struct:extvtoc 176 if (ioctl(devfd, DKIOCGEXTVTOC, &vtoc) == -1) { 182 if ((vtoc.v_sanity != VTOC_SANE) || (vtoc.v_version != V_VERSION)) { 221 if (vtoc.v_part[i].p_tag == V_ALTSCTR) 224 part = &vtoc.v_part[i];
|
/illumos-gate/usr/src/uts/common/avs/ns/solaris/ |
H A D | nsc_raw.c | 574 struct vtoc *vtoc = NULL; local 623 vtoc = kmem_alloc(sizeof (*vtoc), KM_SLEEP); 627 (intptr_t)vtoc, flags, cred, &rval); 654 if ((vtoc->v_sanity != VTOC_SANE) || 655 (vtoc->v_version != V_VERSION && vtoc->v_version != 0) || 661 *bsizep = (uint64_t)vtoc->v_part[(int)dki_info->dki_partition].p_size; 669 if (vtoc) { [all...] |
/illumos-gate/usr/src/cmd/svr4pkg/hdrs/ |
H A D | libadm.h | 32 #include <sys/vtoc.h> 311 extern int read_vtoc __P((int fd, struct vtoc *vtoc)); 312 extern int write_vtoc __P((int fd, struct vtoc *vtoc));
|
/illumos-gate/usr/src/uts/common/io/lvm/stripe/ |
H A D | stripe_ioctl.c | 36 #include <sys/vtoc.h> 574 * and had a vtoc record attached to it, we remove the 575 * vtoc record, because the layout has changed completely. 654 * - There was a vtoc record for the unit, 655 * - This vtoc record is no longer needed, because 694 struct vtoc *vtocp 705 struct vtoc *vtocp 1141 struct vtoc *vtoc; local 1146 vtoc 1175 struct vtoc *vtoc; local [all...] |