]> git.proxmox.com Git - mirror_zfs.git/blobdiff - module/zcommon/zprop_common.c
Illumos #2882, #2883, #2900
[mirror_zfs.git] / module / zcommon / zprop_common.c
index 0a0af2334a082cc7fe32de4b62fb584a1089e447..6d9f89a989ddc6191084bc0363035ebc21ef347d 100644 (file)
@@ -22,6 +22,9 @@
  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
+/*
+ * Copyright (c) 2012 by Delphix. All rights reserved.
+ */
 
 /*
  * Common routines used by zfs and zpool property management.
@@ -129,7 +132,8 @@ zprop_register_hidden(int prop, const char *name, zprop_type_t type,
     zprop_attr_t attr, int objset_types, const char *colname)
 {
        zprop_register_impl(prop, name, type, 0, NULL, attr,
-           objset_types, NULL, colname, B_FALSE, B_FALSE, NULL);
+           objset_types, NULL, colname,
+           type == PROP_TYPE_NUMBER, B_FALSE, NULL);
 }