Lines Matching defs:mode
840 enum zti_modes mode = ztip->zti_mode;
848 if (mode == ZTI_MODE_NULL) {
859 switch (mode) {
872 panic("unrecognized mode for %s_%s taskq (%u:%u) in "
874 zio_type_name[t], zio_taskq_types[q], mode, value);
1041 spa_activate(spa_t *spa, int mode)
1046 spa->spa_mode = mode;
2156 * If this is an untrusted config, access the pool in read-only mode.
2405 * import in read-write mode and (if it is not) whether the
2406 * pool is available for import in read-only mode. If the pool
2407 * is available for import in read-write mode, it is displayed
2409 * in read-only mode, it is displayed as unavailable in
2411 * mode but not read-write mode, it is displayed as unavailable
2413 * available for open in read-only mode.
2708 * read-only mode but not read-write mode. We now have enough
2816 int mode = spa->spa_mode;
2823 spa_activate(spa, mode);
3301 * import (mode is VDEV_ALLOC_SPARE), then we allow corrupted spares to be
3305 spa_validate_aux_devs(spa_t *spa, nvlist_t *nvroot, uint64_t crtxg, int mode,
3341 mode)) != 0)
3373 (mode != VDEV_ALLOC_SPARE && mode != VDEV_ALLOC_L2CACHE))
3386 spa_validate_aux(spa_t *spa, nvlist_t *nvroot, uint64_t crtxg, int mode)
3392 if ((error = spa_validate_aux_devs(spa, nvroot, crtxg, mode,
3398 return (spa_validate_aux_devs(spa, nvroot, crtxg, mode,
3934 uint64_t mode = spa_mode_global;
3958 mode = FREAD;
3977 spa_activate(spa, mode);