Lines Matching defs:vtoc
36 #include <sys/vtoc.h>
3880 struct dk_gpt *vtoc;
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;
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->efi_lbasize: DEV_BSIZE;
4069 vtoc->efi_parts[reqindex].p_tag = tag;
4070 vtoc->efi_parts[reqindex].p_size = reqblks;
4071 vtoc->efi_parts[reqindex].p_start = start_block;
4077 vtoc->efi_parts[userindex].p_start = start_block + reqblks;
4078 vtoc->efi_parts[userindex].p_size = slice_size;
4088 vtoc->efi_parts[userindex].p_tag = V_USR;
4089 (void) strcpy(vtoc->efi_parts[userindex].p_name, "zfs");
4091 vtoc->efi_parts[8].p_start = slice_size + start_block + reqblks;
4092 vtoc->efi_parts[8].p_size = resv;
4093 vtoc->efi_parts[8].p_tag = V_RESERVED;
4095 if (efi_write(fd, vtoc) != 0) {
4103 efi_free(vtoc);
4114 if (bootmgmt_prepare_gpt_req_part(path, vtoc, B_TRUE) != 0) {
4115 efi_free(vtoc);
4122 efi_free(vtoc);