Lines Matching defs:currdev
96 * in the event no currdev is found. -2 means always break, -1 means
201 set_currdev_devdesc(struct devdesc *currdev)
205 devname = devformat(currdev);
206 printf("Setting currdev to %s\n", devname);
213 struct devdesc currdev;
215 currdev.d_dev = dev;
216 currdev.d_unit = unit;
218 set_currdev_devdesc(&currdev);
228 * and we need to adjust currdev appropriately.
231 struct disk_devdesc currdev;
233 currdev.dd.d_dev = dp->pd_devsw;
235 currdev.dd.d_unit = dp->pd_unit;
236 currdev.d_slice = D_SLICENONE;
237 currdev.d_partition = D_PARTNONE;
239 currdev.dd.d_unit = dp->pd_parent->pd_unit;
240 currdev.d_slice = dp->pd_unit;
241 currdev.d_partition = D_PARTISGPT; /* XXX Assumes GPT */
243 set_currdev_devdesc((struct devdesc *)&currdev);
267 struct zfs_devdesc currdev;
269 currdev.dd.d_dev = &zfs_dev;
270 currdev.dd.d_unit = 0;
271 currdev.pool_guid = guid;
272 currdev.root_guid = 0;
273 devname = devformat(&currdev.dd);
275 printf("Setting currdev to %s\n", devname);
278 if (zfs_get_bootonce(&currdev, OS_BOOTONCE, buf, sizeof(buf)) == 0) {
283 (void)zfs_attach_nvstore(&currdev);
517 printf(" Setting currdev to configured rootdev %s\n",
538 printf(" Setting currdev to UEFI path %s\n",
1223 /* Set up currdev variable to have hooks in place. */
1224 env_setenv("currdev", EV_VOLATILE, "", gen_setcurrdev, env_nounset);
1436 * Try and find a good currdev based on the image that was booted.