Lines Matching defs:partition
96 * As the GPT backup partition is located at the end of the disk,
222 int rc, slice, partition;
232 partition = dev->d_partition;
242 DEBUG("%s unit %d, slice %d, partition %d => %p",
249 DEBUG("Can't read partition table");
263 partition >= 0) {
265 rc = ptable_getpart(od->table, &part, partition);
271 /* Try to get information about partition */
282 partition = 255;
284 } else if (partition == 255) {
286 * When we try to open GPT partition, but partition
290 partition = -1;
297 if (partition == -1 &&
310 * assume the 'a' partition. Otherwise just return the
313 if (partition < 0) {
317 partition = 0;
319 rc = ptable_getpart(table, &part, partition);
335 /* Save the slice and partition number to the dev */
337 dev->d_partition = partition;
383 int unit, slice, partition;
388 unit = slice = partition = -1;
402 partition = 255;
414 partition = *cp - 'a';
415 if (partition < 0)
426 dev->d_partition = partition;