Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Jun 2019 00:04:21 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r348674 - head/stand/efi/boot1
Message-ID:  <201906050004.x5504LVj008275@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906050004.x5504LVj008275>