Print this page
Temp stuff on salted-hash for DDT.

Split Close
Expand all
Collapse all
          --- old/usr/src/common/zfs/zpool_prop.c
          +++ new/usr/src/common/zfs/zpool_prop.c
↓ open down ↓ 115 lines elided ↑ open up ↑
 116  116              PROP_DEFAULT, ZFS_TYPE_POOL, "on | off", "RDONLY", boolean_table);
 117  117  
 118  118          /* default index properties */
 119  119          zprop_register_index(ZPOOL_PROP_FAILUREMODE, "failmode",
 120  120              ZIO_FAILURE_MODE_WAIT, PROP_DEFAULT, ZFS_TYPE_POOL,
 121  121              "wait | continue | panic", "FAILMODE", failuremode_table);
 122  122  
 123  123          /* hidden properties */
 124  124          zprop_register_hidden(ZPOOL_PROP_NAME, "name", PROP_TYPE_STRING,
 125  125              PROP_READONLY, ZFS_TYPE_POOL, "NAME");
      126 +        zprop_register_hidden(ZPOOL_PROP_DDT_SALT, "ddt_salt", PROP_TYPE_STRING,
      127 +            PROP_READONLY, ZFS_TYPE_POOL, "DDT_SALT");
 126  128  }
 127  129  
 128  130  /*
 129  131   * Given a property name and its type, returns the corresponding property ID.
 130  132   */
 131  133  zpool_prop_t
 132  134  zpool_name_to_prop(const char *propname)
 133  135  {
 134  136          return (zprop_name_to_prop(propname, ZFS_TYPE_POOL));
 135  137  }
↓ open down ↓ 95 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX