Searched defs:vtoc (Results 1 - 16 of 16) sorted by relevance

/osnet-11/usr/src/lib/libadm/common/
H A Drdwr_vtoc.c37 #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...]
/osnet-11/usr/src/lib/libparted/common/libparted/fs/solaris_x86/
H A Dsolaris_x86.c78 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));
/osnet-11/usr/src/lib/libdiskmgt/common/
H A Dmedia.c37 #include <sys/vtoc.h>
499 struct extvtoc vtoc; local
535 if (read_extvtoc(fd, &vtoc) >= 0 && vtoc.v_volume[0] != 0) {
539 LEN_DKL_VVOL, vtoc.v_volume);
601 struct extvtoc vtoc; local
603 if (read_extvtoc(fd, &vtoc) >= 0) {
604 if (vtoc.v_volume[0] != NULL) {
607 vtoc.v_volume,
611 vtoc
[all...]
H A Dslice.c35 #include <sys/vtoc.h>
394 struct extvtoc vtoc; local
412 if ((status = read_extvtoc(fd, &vtoc)) >= 0) {
432 if (snum < 0 || snum >= vtoc.v_nparts ||
433 vtoc.v_part[snum].p_size == 0) {
455 vtoc.v_part[snum].p_start) != 0) {
459 if (nvlist_add_uint64(attrs, DM_SIZE, vtoc.v_part[snum].p_size)
464 if (nvlist_add_uint32(attrs, DM_TAG, vtoc.v_part[snum].p_tag)
469 if (nvlist_add_uint32(attrs, DM_FLAG, vtoc.v_part[snum].p_flag)
635 struct extvtoc vtoc; local
754 struct extvtoc vtoc; local
834 struct extvtoc vtoc; local
[all...]
H A Ddrive.c35 #include <sys/vtoc.h>
618 struct extvtoc vtoc; local
639 if ((status = read_extvtoc(fd, &vtoc)) >= 0) {
/osnet-11/usr/src/lib/libdscfg/common/
H A Dcfg_local.c29 #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 */
H A Dcfg.c32 #include <sys/vtoc.h>
3489 struct vtoc vtoc; local
3505 if ((slice = read_vtoc(fd, &vtoc)) < 0)
3508 if (vtoc.v_part[slice].p_start < CFG_VTOC_SIZE)
3526 if ((slice = read_vtoc(rfd, &vtoc)) < 0) {
3531 if (vtoc.v_part[slice].p_start < CFG_VTOC_SIZE)
/osnet-11/usr/src/cmd/hal/probing/storage/
H A Dprobe-storage.c28 #include <sys/vtoc.h>
331 struct extvtoc vtoc; local
414 if (read_extvtoc(rfd, &vtoc) >= 0) {
415 if (!vtoc_one_slice_entire_disk(&vtoc)) {
/osnet-11/usr/src/cmd/hal/utils/
H A Dfsutils.c220 * Return true if all non-empty slices in vtoc have identical start/size and
224 vtoc_one_slice_entire_disk(struct extvtoc *vtoc) argument
231 for (i = 0; i < vtoc->v_nparts; i++) {
232 p = &vtoc->v_part[i];
/osnet-11/usr/src/lib/libpower/common/
H A Dpm_suspend.c42 #include <sys/vtoc.h>
153 struct vtoc vtoc; local
170 } else if ((rc = read_vtoc(fd, &vtoc)) >= 0) {
175 if (vtoc.v_part[rc].p_start < 2)
/osnet-11/usr/src/lib/libefi/common/
H A Drdwr_efi.c36 #include <sys/vtoc.h>
75 * Default vtoc information for non-SVr4 partitions
140 efi_alloc_and_init(int fd, uint32_t nparts, struct dk_gpt **vtoc) argument
176 if ((*vtoc = calloc(length, 1)) == NULL)
179 vptr = *vtoc;
204 efi_alloc_and_read(int fd, struct dk_gpt **vtoc) argument
214 if ((*vtoc = calloc(length, 1)) == NULL)
217 (*vtoc)->efi_num_of_partition_entries = nentries;
218 rval = efi_read(fd, *vtoc);
221 ((*vtoc)
309 efi_read(int fd, struct dk_gpt *vtoc) argument
639 write_pmbr(int fd, struct dk_gpt *vtoc) argument
729 check_input(struct dk_gpt *vtoc) argument
986 efi_write(int fd, struct dk_gpt *vtoc) argument
1251 struct vtoc vtoc; local
1267 efi_err_check(struct dk_gpt *vtoc) argument
1362 efi_auto_sense(int fd, struct dk_gpt **vtoc) argument
[all...]
/osnet-11/usr/src/cmd/hal/probing/volume/
H A Dprobe-volume.c31 #include <sys/vtoc.h>
440 struct extvtoc vtoc; local
548 if ((partition_number = read_extvtoc(rfd, &vtoc)) >= 0) {
549 if (!vtoc_one_slice_entire_disk(&vtoc)) {
551 if (partition_number < vtoc.v_nparts) {
552 if (vtoc.v_part[partition_number].p_size == 0) {
555 partition_start = vtoc.v_part[partition_number].p_start * block_size;
/osnet-11/usr/src/lib/lvm/libmeta/common/
H A Dmeta_nameinfo.c147 * 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...]
/osnet-11/usr/src/lib/libzfs/common/
H A Dlibzfs_import.c53 #include <sys/vtoc.h>
999 struct extvtoc vtoc; local
1010 if (read_extvtoc(fd, &vtoc) >= 0) {
1013 vtoc.v_part[i].p_size, vtoc.v_sectorsz);
H A Dlibzfs_pool.c36 #include <sys/vtoc.h>
3880 struct dk_gpt *vtoc; local
3882 if ((err = efi_alloc_and_read(fd, &vtoc)) >= 0) {
3884 *sb = vtoc->efi_parts[0].p_start;
3885 efi_free(vtoc);
3976 struct dk_gpt *vtoc; local
4027 if (efi_alloc_and_init(fd, EFI_NUMPAR, &vtoc) != 0) {
4042 slice_size = vtoc->efi_last_u_lba + 1;
4045 lbasize = (vtoc->efi_lbasize != 0)? vtoc
[all...]
/osnet-11/usr/src/lib/storage/liba5k/common/
H A Dmon.c51 #include <sys/vtoc.h>
2733 struct vtoc vtoc; local
2771 } else if (ioctl(fd, DKIOCGVTOC, &vtoc) == 0) {
2773 * Sanity-check the vtoc
2775 if (vtoc.v_sanity != VTOC_SANE ||
2776 vtoc.v_sectorsz != DEV_BSIZE) {
2779 "Checking vtoc - No Label found.\n");

Completed in 101 milliseconds