Lines 257-262
probe_zfs_currdev(uint64_t guid)
Link Here
|
257 |
} |
257 |
} |
258 |
#endif |
258 |
#endif |
259 |
|
259 |
|
|
|
260 |
#ifdef MD_IMAGE_SIZE |
261 |
static bool |
262 |
probe_md_currdev() |
263 |
{ |
264 |
/* defined in md.c */ |
265 |
extern struct devsw md_dev; |
266 |
|
267 |
char *devname; |
268 |
struct devdesc currdev; |
269 |
currdev.d_dev = &md_dev; |
270 |
currdev.d_unit = 0; |
271 |
set_currdev_devdesc(&currdev); |
272 |
return (sanity_check_currdev()); |
273 |
} |
274 |
#endif |
275 |
|
260 |
static bool |
276 |
static bool |
261 |
try_as_currdev(pdinfo_t *hd, pdinfo_t *pp) |
277 |
try_as_currdev(pdinfo_t *hd, pdinfo_t *pp) |
262 |
{ |
278 |
{ |
Lines 508-513
find_currdev(EFI_LOADED_IMAGE *img, bool do_bootmgr, bool is_last,
Link Here
|
508 |
} |
524 |
} |
509 |
#endif /* EFI_ZFS_BOOT */ |
525 |
#endif /* EFI_ZFS_BOOT */ |
510 |
|
526 |
|
|
|
527 |
#ifdef MD_IMAGE_SIZE |
528 |
if (probe_md_currdev()) |
529 |
return (0); |
530 |
#endif |
531 |
|
511 |
/* |
532 |
/* |
512 |
* Try to find the block device by its handle based on the |
533 |
* Try to find the block device by its handle based on the |
513 |
* image we're booting. If we can't find a sane partition, |
534 |
* image we're booting. If we can't find a sane partition, |