Searched refs:spa_mode (Results 1 – 12 of 12) sorted by relevance
72 vdev_file_open_mode(spa_mode_t spa_mode) in vdev_file_open_mode() argument76 if ((spa_mode & SPA_MODE_READ) && (spa_mode & SPA_MODE_WRITE)) { in vdev_file_open_mode()78 } else if (spa_mode & SPA_MODE_READ) { in vdev_file_open_mode()80 } else if (spa_mode & SPA_MODE_WRITE) { in vdev_file_open_mode()144 vdev_file_open_mode(spa_mode(vd->vdev_spa)), 0, &fp); in vdev_file_open()
893 spamode = spa_mode(vd->vdev_spa); in vdev_geom_open()
74 vdev_file_open_mode(spa_mode_t spa_mode) in vdev_file_open_mode() argument78 if ((spa_mode & SPA_MODE_READ) && (spa_mode & SPA_MODE_WRITE)) { in vdev_file_open_mode()80 } else if (spa_mode & SPA_MODE_READ) { in vdev_file_open_mode()82 } else if (spa_mode & SPA_MODE_WRITE) { in vdev_file_open_mode()145 vdev_file_open_mode(spa_mode(vd->vdev_spa)), 0, &fp); in vdev_file_open()
287 spa_mode_t smode = spa_mode(v->vdev_spa); in vdev_disk_open()474 vdev_blkdev_put(vd->vd_bdh, spa_mode(v->vdev_spa), in vdev_disk_close()
2664 return (!!(spa->spa_mode & SPA_MODE_WRITE) && spa->spa_trust_config); in spa_writeable()2679 spa_mode(spa_t *spa) in spa_mode() function2681 return (spa->spa_mode); in spa_mode()2949 spa->spa_mode == SPA_MODE_READ); in spa_importing_readonly_checkpoint()3089 EXPORT_SYMBOL(spa_mode);
438 (spa_mode(spa) == SPA_MODE_READ), src); in spa_prop_get_config()1684 spa->spa_mode = mode; in spa_activate()4038 if (spa->spa_trust_config && (spa->spa_mode & SPA_MODE_WRITE)) {5083 spa_mode_t mode = spa->spa_mode;5652 spa_mode_t mode = spa->spa_mode;
1004 spa_mode(spa) == SPA_MODE_READ) in vdev_inuse()
935 if (spa_mode(spa) != SPA_MODE_READ) in spa_keystore_unload_wkey()
2726 if (object != 0 && !(spa->spa_mode == SPA_MODE_READ && in metaslab_init()
3385 if (spa->spa_mode == SPA_MODE_READ && !spa->spa_read_spacemaps) in vdev_dtl_load()
406 spa_mode_t spa_mode; /* SPA_MODE_{READ|WRITE} */ member
721 typedef enum spa_mode { enum1146 extern spa_mode_t spa_mode(spa_t *spa);