Deleted Added
full compact
2175c2175
< nvlist_t *unsup_feat;
---
> nvlist_t *unsup_feat, *enabled_feat;
2192,2193c2192,2193
< VERIFY(nvlist_alloc(&unsup_feat, NV_UNIQUE_NAME, KM_SLEEP) ==
< 0);
---
> enabled_feat = fnvlist_alloc();
> unsup_feat = fnvlist_alloc();
2197c2197
< unsup_feat))
---
> unsup_feat, enabled_feat))
2203c2203
< unsup_feat))
---
> unsup_feat, enabled_feat)) {
2204a2205
> }
2206a2208,2210
> fnvlist_add_nvlist(spa->spa_load_info,
> ZPOOL_CONFIG_ENABLED_FEAT, enabled_feat);
>
2208,2209c2212,2213
< VERIFY(nvlist_add_nvlist(spa->spa_load_info,
< ZPOOL_CONFIG_UNSUP_FEAT, unsup_feat) == 0);
---
> fnvlist_add_nvlist(spa->spa_load_info,
> ZPOOL_CONFIG_UNSUP_FEAT, unsup_feat);
2212c2216,2217
< nvlist_free(unsup_feat);
---
> fnvlist_free(enabled_feat);
> fnvlist_free(unsup_feat);