| /onnv/onnv-gate/usr/src/cmd/fs.d/cachefs/cfstagchk/ |
| cfstagchk.c | 49 #include <sys/vtoc.h> 79 struct vtoc vtoc; local 123 slice = read_vtoc(fd, &vtoc); 125 pr_err(gettext("can't read vtoc")); 128 p = &vtoc.v_part[slice]; 135 err = write_vtoc(fd, &vtoc);
|
| /onnv/onnv-gate/usr/src/cmd/addbadsec/ |
| 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) { 177 (void) fprintf(stderr, "%s: could not get VTOC.\n", progname); 182 if ((vtoc.v_sanity != VTOC_SANE) || (vtoc.v_version != V_VERSION)) { 183 (void) fprintf(stderr, "%s: invalid VTOC found.\n", progname); 221 if (vtoc.v_part[i].p_tag == V_ALTSCTR) 224 part = &vtoc.v_part[i];
|
| /onnv/onnv-gate/usr/src/lib/libdiskmgt/common/ |
| media.c | 38 #include <sys/vtoc.h> 423 struct extvtoc vtoc; local 458 if (read_extvtoc(fd, &vtoc) >= 0 && vtoc.v_volume[0] != 0) { 462 LEN_DKL_VVOL, vtoc.v_volume); 550 struct extvtoc vtoc; local 552 if (read_extvtoc(fd, &vtoc) >= 0) { 553 if (vtoc.v_volume[0] != NULL) { 556 vtoc.v_volume, 560 vtoc.v_volume, size) [all...] |
| 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...] |
| /onnv/onnv-gate/usr/src/uts/common/avs/ns/nsctl/ |
| nsc_ioctl.h | 34 #include <sys/vtoc.h> 89 uint64_t vtoc; /* (struct vtoc *) */ member in struct:nscioc_bsize
|
| /onnv/onnv-gate/usr/src/lib/libparted/common/libparted/fs/solaris_x86/ |
| solaris_x86.c | 29 * This module recognizes the Solaris x86 VTOC so that the 78 struct vtoc { struct 80 unsigned long v_sanity; /* to verify vtoc sanity */ 98 struct vtoc *pvtoc; 106 pvtoc = (struct vtoc *)buf; 130 memset(buf, 0, sizeof (struct vtoc));
|
| /onnv/onnv-gate/usr/src/cmd/avs/dsbitmap/ |
| dsbitmap.c | 29 #include <sys/vtoc.h> 122 struct vtoc vtoc; local 133 rc = read_vtoc(fd, &vtoc); 135 size = (uint64_t)(ULONG_MAX & vtoc.v_part[rc].p_size); 142 gettext("unable to read the vtoc from partition, %s: %s"),
|
| /onnv/onnv-gate/usr/src/cmd/devmgmt/mkdtab/ |
| mkdtab.c | 39 #include <sys/vtoc.h> 136 * hdisk() gets information about the specified hard drive from the vtoc 148 struct extvtoc vtoc; local 167 if (read_extvtoc(fd, &vtoc) < 0) { 191 drive, cdskpath, bdskpath, vtoc.v_part[2].p_size) >= lastlen) { 206 (struct dpart *)malloc((int)vtoc.v_nparts * 214 for (i = 0; i < (int)vtoc.v_nparts; ++i) { 215 if (vtoc.v_part[i].p_size == 0 || vtoc.v_part[i].p_flag != 0) 235 dparttab[dpartcnt].capacity = vtoc.v_part[i].p_size [all...] |
| /onnv/onnv-gate/usr/src/cmd/fs.d/udfs/fsck/ |
| setup.c | 53 #include <sys/vtoc.h> 599 struct vtoc vtoc; local 602 if (ioctl(fsreadfd, DKIOCGVTOC, (intptr_t)&vtoc) != 0) { 603 (void) fprintf(stderr, gettext("Unable to read VTOC\n")); 607 if (vtoc.v_sanity != VTOC_SANE) { 608 (void) fprintf(stderr, gettext("Vtoc.v_sanity != VTOC_SANE\n")); 624 return ((uint32_t)vtoc.v_part[dki_info.dki_partition].p_size);
|
| /onnv/onnv-gate/usr/src/cmd/hal/probing/storage/ |
| probe-storage.c | 30 #include <sys/vtoc.h> 350 struct extvtoc vtoc; local 437 if (read_extvtoc(rfd, &vtoc) >= 0) { 438 if (!vtoc_one_slice_entire_disk(&vtoc)) {
|
| /onnv/onnv-gate/usr/src/cmd/prtvtoc/ |
| prtvtoc.c | 35 * Print a disk partition map (volume table of contents, or 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) 360 * prtvtoc(): Read and print a VTOC. 369 struct extvtoc vtoc; local 391 if ((idx = readvtoc(fd, name, &vtoc)) == VT_ENOTSUP) [all...] |
| /onnv/onnv-gate/usr/src/lib/libdscfg/common/ |
| cfg_local.c | 29 #include <sys/vtoc.h> 68 struct vtoc vtoc; local 93 slice = read_vtoc(fd, &vtoc); 100 if (vtoc.v_part[slice].p_start < CFG_VTOC_SIZE) 103 return (vtoc.v_part[slice].p_size); 198 /* skip the vtoc if necessary */
|
| /onnv/onnv-gate/usr/src/uts/common/io/lvm/softpart/ |
| sp_ioctl.c | 55 * DKIOCGVTOC - get vtoc information. 66 #include <sys/vtoc.h> 848 * and had a vtoc record attached to it, we remove the 849 * vtoc record, because the layout has changed completely. 878 * - There was a vtoc record for the unit, 879 * - This vtoc record is no longer needed, because 1345 /* vtoc information */ 1346 struct vtoc *vtoc; local 1377 struct vtoc *vtoc; local [all...] |
| /onnv/onnv-gate/usr/src/uts/common/io/pcmcia/ |
| pcdisk.c | 49 #include <sys/vtoc.h> 591 struct vtoc vtoc; local 720 pcdsklbl_ondsklabel_to_vtoc(&unitp->lbl, &vtoc); 721 vtoctovtoc32(vtoc, vtoc32); 729 pcdsklbl_ondsklabel_to_vtoc(&unitp->lbl, &vtoc); 730 if (ddi_copyout((caddr_t)&vtoc, (caddr_t)arg, 731 sizeof (struct vtoc), flag)) 737 pcdsklbl_ondsklabel_to_vtoc(&unitp->lbl, &vtoc); 738 if (ddi_copyout((caddr_t)&vtoc, (caddr_t)arg [all...] |
| /onnv/onnv-gate/usr/src/uts/common/sys/ |
| vtoc.h | 42 * Note: the VTOC is not implemented fully, nor in the manner 43 * that AT&T implements it. AT&T puts the vtoc structure 46 * Sun incorporates the tag, flag, version, and volume vtoc fields into 47 * its Disk Label, which already has some vtoc-equivalent fields. 48 * Upon reading the vtoc with read_vtoc(), the following exceptions 63 #define VTOC_SANE 0x600DDEEE /* Indicates a sane VTOC */ 90 * error codes for reading & writing vtoc 93 #define VT_EIO (-3) /* I/O error accessing vtoc */ 94 #define VT_EINVAL (-4) /* illegal value in vtoc or request */ 95 #define VT_ENOTSUP (-5) /* VTOC op. not supported * 106 struct vtoc { struct [all...] |
| /onnv/onnv-gate/usr/src/cmd/format/ |
| label.c | 42 #include <sys/vtoc.h> 61 static int vtoc_to_label(struct dk_label *label, struct extvtoc *vtoc, 226 err_print("SMI vtoc to EFI failed\n"); 273 struct extvtoc vtoc; local 344 * Fill in the vtoc information 346 label.dkl_vtoc = cur_parts->vtoc; 354 * Put asciilabel in; on x86 it's in the vtoc, not the label. 372 * Convert the label into a vtoc 374 if (label_to_vtoc(&vtoc, &label) == -1) { 380 * we do this before writing the vtoc 485 struct extvtoc vtoc; local 921 struct extvtoc vtoc; local [all...] |
| menu_fdisk.c | 385 * reread the vtoc 397 if (cur_parts->vtoc.v_part[i].p_tag && 398 cur_parts->vtoc.v_part[i].p_tag != V_ALTSCTR) { 399 cur_parts->vtoc.v_part[i].p_start = 0; 400 cur_parts->vtoc.v_part[i].p_size = 0; 405 cur_parts->vtoc.v_part[i].p_tag = 407 cur_parts->vtoc.v_part[i].p_flag = 421 cur_parts->vtoc.v_part[C_PARTITION].p_start = 423 cur_parts->vtoc.v_part[C_PARTITION].p_size = 426 cur_parts->vtoc.v_part[I_PARTITION].p_start 585 struct vtoc vtoc; local [all...] |
| hardware_structs.h | 184 struct dk_vtoc vtoc; /* SVr4 vtoc additions */ member in struct:partition_info
|
| menu_command.c | 68 * Choices for the p_tag vtoc field 87 * Choices for the p_flag vtoc field 1440 struct extvtoc vtoc; local [all...] |
| /onnv/onnv-gate/usr/src/lib/libefi/common/ |
| rdwr_efi.c | 36 #include <sys/vtoc.h> 74 * Default vtoc information for non-SVr4 partitions 93 #error No VTOC format defined. 137 efi_alloc_and_init(int fd, uint32_t nparts, struct dk_gpt **vtoc) 171 if ((*vtoc = calloc(length, 1)) == NULL) 174 vptr = *vtoc; 198 efi_alloc_and_read(int fd, struct dk_gpt **vtoc) 208 if ((*vtoc = calloc(length, 1)) == NULL) 211 (*vtoc)->efi_nparts = nparts; 212 rval = efi_read(fd, *vtoc); 1053 struct vtoc vtoc; local [all...] |
| /onnv/onnv-gate/usr/src/cmd/avs/nsctl/ |
| nskernd.c | 617 struct vtoc vtoc; local 625 bsize.vtoc = (uint64_t)(unsigned long)&vtoc; 666 if (vtoc.v_sanity != VTOC_SANE) 669 if (vtoc.v_version != V_VERSION && vtoc.v_version != 0) 675 *size = (uint64_t)vtoc.v_part[(int)dki_info.dki_partition].p_size;
|
| /onnv/onnv-gate/usr/src/uts/common/avs/ns/solaris/ |
| 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...] |
| /onnv/onnv-gate/usr/src/uts/common/io/lvm/stripe/ |
| 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 = kmem_zalloc(sizeof (*vtoc), KM_SLEEP) 1175 struct vtoc *vtoc; local [all...] |
| /onnv/onnv-gate/usr/src/cmd/hal/probing/volume/ |
| probe-volume.c | 33 #include <sys/vtoc.h> 442 struct extvtoc vtoc; local 563 if ((partition_number = read_extvtoc(rfd, &vtoc)) >= 0) { 564 if (!vtoc_one_slice_entire_disk(&vtoc)) { 566 if (partition_number < vtoc.v_nparts) { 567 if (vtoc.v_part[partition_number].p_size == 0) { 570 partition_start = vtoc.v_part[partition_number].p_start * block_size;
|
| /onnv/onnv-gate/usr/src/lib/lvm/libmeta/common/ |
| meta_nameinfo.c | 133 * It is possible to present an efi label but be using vtoc 135 * disk in the underlying metadevice is a vtoc disk and starts 457 * free allocations in vtoc 491 if ((! nocache) && (dnp->vtoc.nparts != 0)) { 507 return (&dnp->vtoc); 510 /* can't get vtoc */ 610 metafreevtoc(&dnp->vtoc); 611 meta_efi_to_mdvtoc(gpt, &dnp->vtoc); 612 if (dnp->vtoc.nparts > MD_MAX_PARTS) { 623 if (dnp->vtoc.nparts < V_NUMPAR) 630 struct extvtoc vtoc; local 707 struct extvtoc vtoc; local [all...] |