Changeset View
Changeset View
Standalone View
Standalone View
stand/efi/boot1/zfs_module.c
Show First 20 Lines • Show All 154 Lines • ▼ Show 20 Lines | #ifdef EFI_DEBUG | ||||
efi_free_devpath_name(text); | efi_free_devpath_name(text); | ||||
} | } | ||||
#endif | #endif | ||||
if ((err = zfs_spa_init(spa)) != 0) { | if ((err = zfs_spa_init(spa)) != 0) { | ||||
DPRINTF("Failed to load pool '%s' (%d)\n", spa->spa_name, err); | DPRINTF("Failed to load pool '%s' (%d)\n", spa->spa_name, err); | ||||
return (EFI_NOT_FOUND); | return (EFI_NOT_FOUND); | ||||
} | } | ||||
if ((err = zfs_mount(spa, 0, &zmount)) != 0) { | if ((err = zfs_mount_impl(spa, 0, &zmount)) != 0) { | ||||
DPRINTF("Failed to mount pool '%s' (%d)\n", spa->spa_name, err); | DPRINTF("Failed to mount pool '%s' (%d)\n", spa->spa_name, err); | ||||
return (EFI_NOT_FOUND); | return (EFI_NOT_FOUND); | ||||
} | } | ||||
if ((err = zfs_lookup(&zmount, filepath, &dn)) != 0) { | if ((err = zfs_lookup(&zmount, filepath, &dn)) != 0) { | ||||
if (err == ENOENT) { | if (err == ENOENT) { | ||||
DPRINTF("Failed to find '%s' on pool '%s' (%d)\n", | DPRINTF("Failed to find '%s' on pool '%s' (%d)\n", | ||||
filepath, spa->spa_name, err); | filepath, spa->spa_name, err); | ||||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |