Lines Matching defs:partition
96 * As the GPT backup partition is located at the end of the disk,
234 int rc, slice, partition;
262 partition = dev->d_partition;
264 DPRINTF("%s unit %d, slice %d, partition %d => %p", disk_fmtdev(dev),
271 DPRINTF("Can't read partition table");
283 partition >= 0) {
285 rc = ptable_getpart(od->table, &part, partition);
294 /* Try to get information about partition */
305 partition = D_PARTISGPT;
307 } else if (partition == D_PARTISGPT) {
309 * When we try to open GPT partition, but partition
310 * table isn't GPT, reset partition value to
313 partition = D_PARTWILD;
317 * If partition is D_PARTNONE, then disk_open() was called
320 if (partition == D_PARTNONE)
324 * If partition is D_PARTWILD and we are looking at a BSD slice,
328 if (partition == D_PARTWILD &&
340 * If slice contains BSD label and partition < 0, then
341 * assume the 'a' partition. Otherwise just return the
344 if (partition < 0) {
347 partition = 0;
349 rc = ptable_getpart(table, &part, partition);
365 /* Save the slice and partition number to the dev */
367 dev->d_partition = partition;
415 int unit, slice, partition;
424 * slice or partition info should be considered a request to search for
425 * an appropriate partition. Otherwise we want to open the raw device
430 partition = D_PARTWILD;
433 partition = D_PARTNONE;
449 partition = D_PARTISGPT;
461 partition = *cp - 'a';
462 if (partition < 0)
476 dev->d_partition = partition;