From 129b3149d88b64c7ad0f160add87769a02526a18 Mon Sep 17 00:00:00 2001
From: pjd <pjd@FreeBSD.org>
Date: Mon, 21 Jul 2008 09:45:44 +0000
Subject: We want to check new options given, not the current ones. This fixes
 'zpool import -o <mntopt> <name>' not working properly.

---
 sys/cddl/compat/opensolaris/kern/opensolaris_vfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'sys/cddl/compat/opensolaris/kern')

diff --git a/sys/cddl/compat/opensolaris/kern/opensolaris_vfs.c b/sys/cddl/compat/opensolaris/kern/opensolaris_vfs.c
index 166eeed..6360a72 100644
--- a/sys/cddl/compat/opensolaris/kern/opensolaris_vfs.c
+++ b/sys/cddl/compat/opensolaris/kern/opensolaris_vfs.c
@@ -100,7 +100,7 @@ vfs_clearmntopt(vfs_t *vfsp, const char *name)
 int
 vfs_optionisset(const vfs_t *vfsp, const char *opt, char **argp)
 {
-	struct vfsoptlist *opts = vfsp->mnt_opt;
+	struct vfsoptlist *opts = vfsp->mnt_optnew;
 	int error;
 
 	if (opts == NULL)
-- 
cgit v1.1