Lines Matching full:part
44 #include <geom/part/g_part.h>
63 struct partition part;
167 entry->part.p_size = gpp->gpp_size;
168 entry->part.p_offset = gpp->gpp_start + table->offset;
169 entry->part.p_fsize = 0;
170 entry->part.p_frag = 0;
171 entry->part.p_cpg = 0;
172 return (bsd_parse_type(gpp->gpp_type, &entry->part.p_fstype));
238 entry->part.p_size = basetable->gpt_last + 1;
239 entry->part.p_offset = table->offset;
267 sbuf_printf(sb, " xs BSD xt %u", entry->part.p_fstype);
271 entry->part.p_fstype);
284 return ((entry->part.p_fstype == FS_UNUSED ||
285 entry->part.p_fstype == FS_SWAP) ? 1 : 0);
299 return (bsd_parse_type(gpp->gpp_type, &entry->part.p_fstype));
320 entry->part.p_size = msize;
339 entry->part.p_size = gpp->gpp_size;
388 struct partition part;
443 part.p_size = le32dec(p + 0);
444 part.p_offset = le32dec(p + 4);
445 part.p_fsize = le32dec(p + 8);
446 part.p_fstype = p[12];
447 part.p_frag = p[13];
448 part.p_cpg = le16dec(p + 14);
449 if (part.p_size == 0)
451 if (part.p_offset < table->offset)
453 if (part.p_offset - table->offset > basetable->gpt_last)
456 part.p_offset - table->offset,
457 part.p_offset - table->offset + part.p_size - 1);
459 entry->part = part;
481 type = entry->part.p_fstype;
516 le32enc(p + 0, entry->part.p_size);
517 le32enc(p + 4, entry->part.p_offset);
518 le32enc(p + 8, entry->part.p_fsize);
519 p[12] = entry->part.p_fstype;
520 p[13] = entry->part.p_frag;
521 le16enc(p + 14, entry->part.p_cpg);