Lines Matching defs:config

198  * the MOS config will have been updated but the cache file has not. If
199 * the system were to crash at that instant then the cached config may not
282 * the config cache.
288 * Remove any config entries older than the current one.
338 spa_config_set(spa_t *spa, nvlist_t *config)
342 spa->spa_config = config;
349 * We infer whether to generate a complete config or just one top-level config
355 nvlist_t *config, *nvroot;
376 config = fnvlist_alloc();
378 fnvlist_add_uint64(config, ZPOOL_CONFIG_VERSION, spa_version(spa));
379 fnvlist_add_string(config, ZPOOL_CONFIG_POOL_NAME, spa_name(spa));
380 fnvlist_add_uint64(config, ZPOOL_CONFIG_POOL_STATE, spa_state(spa));
381 fnvlist_add_uint64(config, ZPOOL_CONFIG_POOL_TXG, txg);
382 fnvlist_add_uint64(config, ZPOOL_CONFIG_POOL_GUID, spa_guid(spa));
384 fnvlist_add_string(config, ZPOOL_CONFIG_COMMENT,
398 fnvlist_add_uint64(config, ZPOOL_CONFIG_HOSTID, hostid);
400 fnvlist_add_string(config, ZPOOL_CONFIG_HOSTNAME, utsname.nodename);
404 fnvlist_add_uint64(config, ZPOOL_CONFIG_TOP_GUID,
406 fnvlist_add_uint64(config, ZPOOL_CONFIG_GUID,
409 fnvlist_add_uint64(config,
413 fnvlist_add_uint64(config,
416 vd = vd->vdev_top; /* label contains top config */
420 * in the mos config, and not in the vdev labels
423 fnvlist_add_nvlist(config, ZPOOL_CONFIG_SPLIT,
425 fnvlist_add_boolean(config,
432 * Add the top-level config. We even add this on pools which
435 vdev_top_config_generate(spa, config);
443 fnvlist_add_uint64(config, ZPOOL_CONFIG_SPLIT_GUID,
448 fnvlist_add_nvlist(config, ZPOOL_CONFIG_VDEV_TREE, nvroot);
454 fnvlist_add_nvlist(config, ZPOOL_CONFIG_FEATURES_FOR_READ,
464 fnvlist_add_uint64_array(config,
471 fnvlist_add_uint64_array(config,
478 fnvlist_add_uint64_array(config,
487 return (config);
491 * Update all disk labels, generate a fresh config based on the current
492 * in-core state, and sync the global config cache (do not sync the config
512 * (It's safe now because the config cache is up to date,
531 * Update the global config cache to reflect the new mosconfig.