Lines Matching refs:slice
176 * Parse a device string into type, unit, slice and partition numbers. A
182 * The returned values for slice and partition are interpreted by
187 * disk<unit>s<slice> disk0s1
188 * disk<unit>s<slice><partition> disk1s2a
198 * <type_name><unit>:<slice> DEV_TYP_STOR
199 * <type_name><unit>:<slice>. DEV_TYP_STOR
200 * <type_name><unit>:<slice>.<partition> DEV_TYP_STOR
207 get_load_device(int *type, int *unit, int *slice, int *partition)
216 *slice = D_SLICEWILD;
242 *slice = dev.d_slice;
281 /* No slice and partition specification. */
285 /* Only DEV_TYP_STOR devices can have a slice specification. */
292 *slice = strtoul(p, &endp, 10);
294 /* Malformed slice number. */
298 *slice = D_SLICEWILD;
308 /* Device string is malformed beyond slice number. */
312 *slice = D_SLICEWILD;
332 *slice = D_SLICEWILD;
339 char slice[32];
343 strlcpy(slice, "<none>", sizeof(slice));
345 strlcpy(slice, "<auto>", sizeof(slice));
347 snprintf(slice, sizeof(slice), "%d", currdev.d_disk.d_slice);
357 printf(" Checking unit=%d slice=%s partition=%s...",
358 currdev.dd.d_unit, slice, partition);
419 printf(" Requested disk type/unit/slice/partition not found\n");