Lines Matching full:slice
139 /* Open slice with BSD label */ in ptable_print()
234 int rc, slice, partition; in disk_open() local
261 slice = dev->d_slice; in disk_open()
264 DPRINTF("%s unit %d, slice %d, partition %d => %p", disk_fmtdev(dev), in disk_open()
293 } else if (slice >= 0) { in disk_open()
295 if (slice == 0) in disk_open()
298 rc = ptable_getpart(od->table, &part, slice); in disk_open()
303 slice = part.index; in disk_open()
318 * to open raw MBR slice. in disk_open()
324 * If partition is D_PARTWILD and we are looking at a BSD slice, in disk_open()
326 * whole MBR slice. in disk_open()
340 * If slice contains BSD label and partition < 0, then in disk_open()
342 * whole MBR slice, because it can contain ZFS. in disk_open()
365 /* Save the slice and partition number to the dev */ in disk_open()
366 dev->d_slice = slice; in disk_open()
415 int unit, slice, partition; in disk_parsedev() local
424 * slice or partition info should be considered a request to search for in disk_parsedev()
429 slice = D_SLICEWILD; in disk_parsedev()
432 slice = D_SLICENONE; in disk_parsedev()
443 slice = strtol(np, &cp, 10); in disk_parsedev()
455 slice = strtol(np, &cp, 10); in disk_parsedev()
475 dev->d_slice = slice; in disk_parsedev()