From 181424237903cd139df8e63fa6f09ebf2e8cd750 Mon Sep 17 00:00:00 2001 From: Andrew Stormont Date: Thu, 25 Oct 2018 17:16:39 +0100 Subject: [PATCH] OpenZFS 9914 - NV_UNIQUE_NAME_TYPE broken after 9580 Authored by: Andrew Stormont Reviewed by: Yuri Pankov Reviewed by: Garrett D'Amore Reviewed by: Andy Fiddaman Reviewed-by: Serapheim Dimitropoulos Reviewed-by: Igor Kozhukhov Approved by: Dan McDonald Ported-by: Brian Behlendorf OpenZFS-issue: https://www.illumos.org/issues/9914 OpenZFS-commit: https://github.com/illumos/illumos-gate/commit/b8a5bee18 Closes #8496 --- module/nvpair/nvpair.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/nvpair/nvpair.c b/module/nvpair/nvpair.c index 9d1fe4643..251629225 100644 --- a/module/nvpair/nvpair.c +++ b/module/nvpair/nvpair.c @@ -22,6 +22,7 @@ /* * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2015, 2017 by Delphix. All rights reserved. + * Copyright 2018 RackTop Systems. */ #include @@ -470,7 +471,7 @@ nvt_remove_nvpair(nvlist_t *nvl, nvpair_t *nvp) for (i_nvp_t *prev = NULL, *e = bucket; e != NULL; prev = e, e = e->nvi_hashtable_next) { - if (nvt_nvpair_match(&e->nvi_nvp, nvp, nvl->nvl_flag)) { + if (nvt_nvpair_match(&e->nvi_nvp, nvp, nvl->nvl_nvflag)) { if (prev != NULL) { prev->nvi_hashtable_next = e->nvi_hashtable_next;