diff options
author | andrew <andrew@FreeBSD.org> | 2016-01-18 20:22:51 +0000 |
---|---|---|
committer | andrew <andrew@FreeBSD.org> | 2016-01-18 20:22:51 +0000 |
commit | c81a82d3821dcd7490df7a6a2f445ded2a2ec82f (patch) | |
tree | 29c730d0943031b015a20b4da6563d3fd42b05ba | |
parent | dd74f412fc36316420d6c11ada7cf7bde2cce4e0 (diff) | |
download | FreeBSD-src-c81a82d3821dcd7490df7a6a2f445ded2a2ec82f.zip FreeBSD-src-c81a82d3821dcd7490df7a6a2f445ded2a2ec82f.tar.gz |
Reset the filesystem cache before reading from a potentially new
filesystem. Without this we only read from the first UFS filesystem we
find, caching the result.
X-MFC with: The recent boot1.efi changes
-rw-r--r-- | sys/boot/efi/boot1/ufs_module.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/boot/efi/boot1/ufs_module.c b/sys/boot/efi/boot1/ufs_module.c index 7d36f84d..9181b6e 100644 --- a/sys/boot/efi/boot1/ufs_module.c +++ b/sys/boot/efi/boot1/ufs_module.c @@ -171,6 +171,7 @@ try_load(dev_info_t *dev, const char *loader_path, void **bufp, size_t *bufsize) ssize_t read; void *buf; + dsk_meta = 0; devinfo = dev; if ((ino = lookup(loader_path)) == 0) return (EFI_NOT_FOUND); |