Lines Matching refs:devid
188 ddi_devid_t devid;
200 * Only prefetch path and devid info if the device has
220 ddi_devid_str_decode(vd->vdev_devid, &devid, &minor) == 0) {
221 (void) ldi_vp_from_devid(devid, minor, &vd->vdev_devid_vp);
223 ddi_devid_free(devid);
300 ddi_devid_t devid;
345 * 2. If the devid of the device matches the stored value, return
349 * by the devid instead.
390 * Compare the devid to the stored value.
393 ldi_get_devid(dvd->vd_lh, &devid) == 0) {
394 if (ddi_devid_compare(devid, dvd->vd_devid) != 0) {
400 ddi_devid_free(devid);
412 * If we were unable to open by path, or the devid check fails, open by
413 * devid instead.
422 * or the logical path (if we failed due to the devid check). While not
423 * as reliable as the devid, this will give us something, and the higher
451 * Now that the device has been successfully opened, update the devid
455 ldi_get_devid(dvd->vd_lh, &devid) == 0) {
456 if (ddi_devid_compare(devid, dvd->vd_devid) != 0) {
459 vd_devid = ddi_devid_str_encode(devid, dvd->vd_minor);
460 zfs_dbgmsg("vdev %s: update devid from %s, "
466 ddi_devid_free(devid);
869 * Given the root disk device devid or pathname, read the label from
873 vdev_disk_read_rootlabel(char *devpath, char *devid, nvlist_t **config)
886 if (devid != NULL && ddi_devid_str_decode(devid, &tmpdevid,