Lines Matching full:partition

97 	 * As the GPT backup partition is located at the end of the disk,  in ptblread()
234 int rc, slice, partition; in disk_open() local
262 partition = dev->d_partition; in disk_open()
264 DPRINTF("%s unit %d, slice %d, partition %d => %p", disk_fmtdev(dev), in disk_open()
271 DPRINTF("Can't read partition table"); in disk_open()
284 partition >= 0) { in disk_open()
286 rc = ptable_getpart(od->table, &part, partition); in disk_open()
295 /* Try to get information about partition */ in disk_open()
300 if (rc != 0) /* Partition doesn't exist */ in disk_open()
306 partition = D_PARTISGPT; in disk_open()
308 } else if (partition == D_PARTISGPT) { in disk_open()
310 * When we try to open GPT partition, but partition in disk_open()
311 * table isn't GPT, reset partition value to in disk_open()
314 partition = D_PARTWILD; in disk_open()
318 * If partition is D_PARTNONE, then disk_open() was called in disk_open()
321 if (partition == D_PARTNONE) in disk_open()
325 * If partition is D_PARTWILD and we are looking at a in disk_open()
329 if (partition == D_PARTWILD) { in disk_open()
347 * If slice contains BSD/VTOC label and partition < 0, then in disk_open()
348 * assume the 'a' partition. Otherwise just return the in disk_open()
351 if (partition < 0) { in disk_open()
355 partition = 0; in disk_open()
357 rc = ptable_getpart(table, &part, partition); in disk_open()
373 /* Save the slice and partition number to the dev */ in disk_open()
375 dev->d_partition = partition; in disk_open()
421 int unit, slice, partition; in disk_parsedev() local
429 * slice or partition info should be considered a request to search for in disk_parsedev()
430 * an appropriate partition. Otherwise we want to open the raw device in disk_parsedev()
435 partition = D_PARTWILD; in disk_parsedev()
438 partition = D_PARTNONE; in disk_parsedev()
454 partition = D_PARTISGPT; in disk_parsedev()
466 partition = *cp - 'a'; in disk_parsedev()
467 if (partition < 0) in disk_parsedev()
478 dev->d_partition = partition; in disk_parsedev()