Home
last modified time | relevance | path

Searched refs:spa_mode (Results 1 – 12 of 12) sorted by relevance

/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dvdev_file.c72 vdev_file_open_mode(spa_mode_t spa_mode) in vdev_file_open_mode() argument
76 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()
H A Dvdev_geom.c893 spamode = spa_mode(vd->vdev_spa); in vdev_geom_open()
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dvdev_file.c74 vdev_file_open_mode(spa_mode_t spa_mode) in vdev_file_open_mode() argument
78 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()
H A Dvdev_disk.c287 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()
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dspa_misc.c2664 return (!!(spa->spa_mode & SPA_MODE_WRITE) && spa->spa_trust_config); in spa_writeable()
2679 spa_mode(spa_t *spa) in spa_mode() function
2681 return (spa->spa_mode); in spa_mode()
2949 spa->spa_mode == SPA_MODE_READ); in spa_importing_readonly_checkpoint()
3089 EXPORT_SYMBOL(spa_mode);
H A Dspa.c438 (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;
H A Dvdev_label.c1004 spa_mode(spa) == SPA_MODE_READ) in vdev_inuse()
H A Ddsl_crypt.c935 if (spa_mode(spa) != SPA_MODE_READ) in spa_keystore_unload_wkey()
H A Dmetaslab.c2726 if (object != 0 && !(spa->spa_mode == SPA_MODE_READ && in metaslab_init()
H A Dvdev.c3385 if (spa->spa_mode == SPA_MODE_READ && !spa->spa_read_spacemaps) in vdev_dtl_load()
/freebsd/sys/contrib/openzfs/include/sys/
H A Dspa_impl.h406 spa_mode_t spa_mode; /* SPA_MODE_{READ|WRITE} */ member
H A Dspa.h721 typedef enum spa_mode { enum
1146 extern spa_mode_t spa_mode(spa_t *spa);