Lines Matching full:part
33 #include <part.h>
104 ptable_print(void *arg, const char *pname, const struct ptable_entry *part) in ptable_print() argument
118 partsize = part->end - part->start + 1; in ptable_print()
120 parttype2str(part->type)); in ptable_print()
138 if (part->type == PART_FREEBSD) { in ptable_print()
142 dev.d_slice = part->index; in ptable_print()
233 struct ptable_entry part; in disk_open() local
285 rc = ptable_getpart(od->table, &part, partition); in disk_open()
287 dev->d_offset = part.start; in disk_open()
288 od->entrysize = part.end - part.start + 1; in disk_open()
296 rc = ptable_getbestpart(od->table, &part); in disk_open()
298 rc = ptable_getpart(od->table, &part, slice); in disk_open()
301 dev->d_offset = part.start; in disk_open()
302 od->entrysize = part.end - part.start + 1; in disk_open()
303 slice = part.index; in disk_open()
329 part.type != PART_FREEBSD) in disk_open()
332 table = ptable_open(dev, part.end - part.start + 1, in disk_open()
349 rc = ptable_getpart(table, &part, partition); in disk_open()
352 dev->d_offset += part.start; in disk_open()
353 od->entrysize = part.end - part.start + 1; in disk_open()