svn commit: r348674 - head/stand/efi/boot1
Warner Losh
imp at FreeBSD.org
Wed Jun 5 00:04:22 UTC 2019
Author: imp
Date: Wed Jun 5 00:04:21 2019
New Revision: 348674
URL: https://svnweb.freebsd.org/changeset/base/348674
Log:
Don't shadow a global zfsmount variable.
Modified:
head/stand/efi/boot1/zfs_module.c
Modified: head/stand/efi/boot1/zfs_module.c
==============================================================================
--- head/stand/efi/boot1/zfs_module.c Tue Jun 4 21:54:34 2019 (r348673)
+++ head/stand/efi/boot1/zfs_module.c Wed Jun 5 00:04:21 2019 (r348674)
@@ -141,7 +141,7 @@ static EFI_STATUS
load(const char *filepath, dev_info_t *devinfo, void **bufp, size_t *bufsize)
{
spa_t *spa;
- struct zfsmount zfsmount;
+ struct zfsmount zmount;
dnode_phys_t dn;
struct stat st;
int err;
@@ -163,12 +163,12 @@ load(const char *filepath, dev_info_t *devinfo, void *
return (EFI_NOT_FOUND);
}
- if ((err = zfs_mount(spa, 0, &zfsmount)) != 0) {
+ if ((err = zfs_mount(spa, 0, &zmount)) != 0) {
DPRINTF("Failed to mount pool '%s' (%d)\n", spa->spa_name, err);
return (EFI_NOT_FOUND);
}
- if ((err = zfs_lookup(&zfsmount, filepath, &dn)) != 0) {
+ if ((err = zfs_lookup(&zmount, filepath, &dn)) != 0) {
if (err == ENOENT) {
DPRINTF("Failed to find '%s' on pool '%s' (%d)\n",
filepath, spa->spa_name, err);
More information about the svn-src-head
mailing list