Lines Matching refs:type

76 	} type;
81 enum ptable_type type;
89 enum partition_type type;
118 parttype2str(enum partition_type type)
123 if (ptypes[i].type == type)
139 gpt_parttype(uuid_t type)
142 if (uuid_equal(&type, &gpt_uuid_efi, NULL))
144 else if (uuid_equal(&type, &gpt_uuid_ms_basic_data, NULL))
146 else if (uuid_equal(&type, &gpt_uuid_freebsd_boot, NULL))
148 else if (uuid_equal(&type, &gpt_uuid_freebsd_ufs, NULL))
150 else if (uuid_equal(&type, &gpt_uuid_freebsd_zfs, NULL))
152 else if (uuid_equal(&type, &gpt_uuid_freebsd_swap, NULL))
154 else if (uuid_equal(&type, &gpt_uuid_freebsd_vinum, NULL))
156 else if (uuid_equal(&type, &gpt_uuid_freebsd_nandfs, NULL))
158 else if (uuid_equal(&type, &gpt_uuid_freebsd, NULL))
160 else if (uuid_equal(&type, &gpt_uuid_illumos_ufs, NULL))
162 else if (uuid_equal(&type, &gpt_uuid_illumos_zfs, NULL))
164 else if (uuid_equal(&type, &gpt_uuid_reserved, NULL))
327 table->type = PTABLE_NONE;
343 entry->part.type = gpt_parttype(ent->ent_type);
345 memcpy(&entry->type.gpt, &ent->ent_type, sizeof(uuid_t));
360 mbr_parttype(uint8_t type)
363 switch (type) {
394 if (e1->type.mbr == DOSPTYP_EXT ||
395 e1->type.mbr == DOSPTYP_EXTLBA)
429 entry->part.type = mbr_parttype(dp[0].dp_typ);
431 entry->type.mbr = dp[0].dp_typ;
444 bsd_parttype(uint8_t type)
447 switch (type) {
512 entry->part.type = bsd_parttype(part->p_fstype);
514 entry->type.bsd = part->p_fstype;
518 table->type = PTABLE_BSD;
526 vtoc8_parttype(uint16_t type)
529 switch (type) {
594 entry->part.type = vtoc8_parttype(dl->part[i].tag);
596 entry->type.vtoc8 = dl->part[i].tag;
600 table->type = PTABLE_VTOC8;
609 vtoc_parttype(uint16_t type)
611 switch (type) {
680 entry->part.type = vtoc_parttype(dv->v_part[i].p_tag);
682 entry->type.vtoc = dv->v_part[i].p_tag;
686 table->type = PTABLE_VTOC;
720 table->type = PTABLE_NONE;
726 } else if (table->type == PTABLE_VTOC)
735 } else if (table->type == PTABLE_VTOC8)
743 } else if (table->type == PTABLE_BSD)
753 table->type = PTABLE_GPT;
767 table->type = PTABLE_GPT;
775 if (table->type == PTABLE_GPT && count > 1) {
777 table->type = PTABLE_NONE;
783 if (table->type == PTABLE_GPT) {
791 table->type = PTABLE_MBR;
812 entry->part.type = mbr_parttype(dp[i].dp_typ);
814 entry->type.mbr = dp[i].dp_typ;
846 return (table->type);
897 if (table->type == PTABLE_MBR) {
898 switch (entry->type.mbr) {
922 if (table->type == PTABLE_GPT) {
923 if (entry->part.type == PART_DOS)
925 else if (entry->part.type == PART_ILLUMOS_ZFS)
956 if (table->type == PTABLE_MBR)
961 if (table->type == PTABLE_GPT)
966 if (table->type == PTABLE_VTOC8)
971 if (table->type == PTABLE_VTOC)
975 if (table->type == PTABLE_BSD)