Lines Matching defs:config
46 nvlist_t *config;
77 if (h->config != NULL) {
78 nvlist_free(h->config);
92 if (zpool_read_label(h->fd, &h->config) != 0 ||
93 h->config == NULL) {
97 if (nvlist_lookup_uint64(h->config, ZPOOL_CONFIG_POOL_STATE,
99 nvlist_free(h->config);
100 h->config = NULL;
105 (void) nvlist_add_boolean_value(h->config, "gen_clean", B_TRUE);
106 if (nvlist_lookup_uint64(h->config, "guid", &u64) == 0) {
108 (void) nvlist_add_string(h->config, "gen_guid", buf);
110 if (nvlist_lookup_uint64(h->config, "version", &u64) == 0) {
112 (void) nvlist_add_string(h->config, "gen_version", buf);
114 if (nvlist_lookup_string(h->config, "name", &str) == 0) {
115 (void) nvlist_add_string(h->config, "gen_volume_label", str);
126 *attrp = h->config;