Here's the fix:

<pre>
diff --git a/usr/src/cmd/zpool/zpool_main.c b/usr/src/cmd/zpool/zpool_main.c
index 3f8bee81c0..a6e878a341 100644
--- a/usr/src/cmd/zpool/zpool_main.c
+++ b/usr/src/cmd/zpool/zpool_main.c
@@ -413,7 +413,7 @@ static int
 add_prop_list(const char *propname, char *propval, nvlist_t **props,
     boolean_t poolprop)
 {
-       zpool_prop_t prop = ZPROP_INVAL;
+       zpool_prop_t prop = ZPOOL_PROP_INVAL;
        zfs_prop_t fprop;
        nvlist_t *proplist;
        const char *normnm;
@@ -431,7 +431,7 @@ add_prop_list(const char *propname, char *propval, nvlist_t 
**props,
        if (poolprop) {
                const char *vname = zpool_prop_to_name(ZPOOL_PROP_VERSION);

-               if ((prop = zpool_name_to_prop(propname)) == ZPROP_INVAL &&
+               if ((prop = zpool_name_to_prop(propname)) == ZPOOL_PROP_INVAL &&
                    !zpool_prop_feature(propname)) {
                        (void) fprintf(stderr, gettext("property '%s' is "
                            "not a valid pool property\n"), propname);
</pre>

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openzfs/openzfs/pull/466#issuecomment-358802546
------------------------------------------
openzfs-developer
Archives: 
https://openzfs.topicbox.com/groups/developer/discussions/T976ed59e1bf957fd-Mbc8b052cc7c3e723f7ae6cc2
Powered by Topicbox: https://topicbox.com

Reply via email to