Lines Matching defs:state

35  * This file contains all the routines used when modifying on-disk SPA state.
147 spa_load_state_t state, spa_import_type_t type, boolean_t mosconfig,
794 * SPA state manipulation (open/create/destroy/import/export)
1174 * in the CLOSED state. This will prep the pool before open/creation/import.
1711 * Load the slog device's state from the MOS config
2041 /* check each device to see what state it's in */
2066 spa_load(spa_t *spa, spa_load_state_t state, spa_import_type_t type,
2094 if ((state == SPA_LOAD_IMPORT || state == SPA_LOAD_TRYIMPORT) &&
2110 error = spa_load_impl(spa, pool_guid, config, state, type,
2141 spa_load_state_t state, spa_import_type_t type, boolean_t mosconfig,
2164 spa->spa_load_state = state;
2379 if (spa_writeable(spa) || state == SPA_LOAD_TRYIMPORT) {
2403 * If the state is SPA_LOAD_TRYIMPORT, our objective is
2415 * As a result, if the state is SPA_LOAD_TRYIMPORT and we are
2506 return (spa_load(spa, state, SPA_IMPORT_EXISTING, B_TRUE));
2635 if (spa->spa_autoreplace && state != SPA_LOAD_TRYIMPORT) {
2642 if (state != SPA_LOAD_IMPORT) {
2649 * Load the vdev state for all toplevel vdevs.
2690 * Now that we've validated the config, check the state of the
2704 ASSERT(state == SPA_LOAD_TRYIMPORT);
2718 if (state != SPA_LOAD_TRYIMPORT) {
2724 if (spa_writeable(spa) && (state == SPA_LOAD_RECOVER ||
2730 ASSERT(state != SPA_LOAD_TRYIMPORT);
2769 state == SPA_LOAD_IMPORT ||
2770 state == SPA_LOAD_RECOVER ||
2814 spa_load_retry(spa_t *spa, spa_load_state_t state, int mosconfig)
2826 return (spa_load(spa, state, SPA_IMPORT_EXISTING, mosconfig));
2831 * 'state' is SPA_LOAD_RECOVER and one of these loads succeeds the pool
2832 * will be rewound to that txg. If 'state' is not SPA_LOAD_RECOVER this
2837 spa_load_best(spa_t *spa, spa_load_state_t state, int mosconfig,
2846 if (spa->spa_load_txg && state == SPA_LOAD_RECOVER) {
2855 load_error = rewind_error = spa_load(spa, state, SPA_IMPORT_EXISTING,
2871 if (state == SPA_LOAD_RECOVER) {
2897 rewind_error = spa_load_retry(spa, state, mosconfig);
2903 if (config && (rewind_error || state != SPA_LOAD_RECOVER))
2906 if (state == SPA_LOAD_RECOVER) {
2928 * POOL_STATE_UNINITIALIZED state.
2932 * ambiguous state.
2939 spa_load_state_t state = SPA_LOAD_OPEN;
2968 state = SPA_LOAD_RECOVER;
2972 if (state != SPA_LOAD_RECOVER)
2975 error = spa_load_best(spa, state, B_FALSE, policy.zrp_txg,
2998 * information: the state of each vdev after the
3027 if (state == SPA_LOAD_RECOVER) {
3932 spa_load_state_t state = SPA_LOAD_IMPORT;
3986 state = SPA_LOAD_RECOVER;
3993 if (state != SPA_LOAD_RECOVER)
3996 error = spa_load_best(spa, state, B_TRUE, policy.zrp_txg,
4117 uint64_t state;
4123 if (nvlist_lookup_uint64(tryconfig, ZPOOL_CONFIG_POOL_STATE, &state))
4148 state) == 0);
4208 * update the pool state and sync all the labels to disk, removing the
4242 * in which case we can modify its state.
4537 * attach to a spared vdev child unless the 'isspare' state is
4830 * Reevaluate the parent vdev state.
5648 * degraded/faulted state as well as attempt to reopen the
6273 * If there are any pending vdev state changes, convert them
6525 * Remove all cached state. All pools should be closed now,