Lines Matching defs:spa

30 #include <sys/spa.h>
107 const char *subclass, spa_t *spa, vdev_t *vd, zio_t *zio,
119 if (spa_load_state(spa) == SPA_LOAD_TRYIMPORT ||
120 spa_load_state(spa) == SPA_LOAD_RECOVER)
128 if (spa_load_state(spa) != SPA_LOAD_NONE &&
129 spa->spa_last_open_failed)
202 mutex_enter(&spa->spa_errlist_lock);
209 if (spa_load_state(spa) != SPA_LOAD_NONE) {
210 if (spa->spa_ena == 0)
211 spa->spa_ena = fm_ena_generate(0, FM_ENA_FMT1);
212 ena = spa->spa_ena;
228 fm_fmri_zfs_set(detector, FM_ZFS_SCHEME_VERSION, spa_guid(spa),
242 DATA_TYPE_STRING, spa_name(spa), FM_EREPORT_PAYLOAD_ZFS_POOL_GUID,
243 DATA_TYPE_UINT64, spa_guid(spa),
245 spa_load_state(spa), NULL);
247 if (spa != NULL) {
250 spa_get_failmode(spa) == ZIO_FAILURE_MODE_WAIT ?
252 spa_get_failmode(spa) == ZIO_FAILURE_MODE_CONTINUE ?
350 mutex_exit(&spa->spa_errlist_lock);
669 zfs_ereport_post(const char *subclass, spa_t *spa, vdev_t *vd, zio_t *zio,
677 subclass, spa, vd, zio, stateoroffset, size);
690 zfs_ereport_start_checksum(spa_t *spa, vdev_t *vd,
712 FM_EREPORT_ZFS_CHECKSUM, spa, vd, zio, offset, length);
725 mutex_enter(&spa->spa_errlist_lock);
728 mutex_exit(&spa->spa_errlist_lock);
780 zfs_ereport_post_checksum(spa_t *spa, vdev_t *vd,
790 FM_EREPORT_ZFS_CHECKSUM, spa, vd, zio, offset, length);
810 zfs_post_common(spa_t *spa, vdev_t *vd, const char *name)
816 if (spa_load_state(spa) == SPA_LOAD_TRYIMPORT)
827 FM_EREPORT_PAYLOAD_ZFS_POOL_GUID, spa_guid(spa)) == 0);
845 zfs_post_remove(spa_t *spa, vdev_t *vd)
847 zfs_post_common(spa, vd, FM_RESOURCE_REMOVED);
856 zfs_post_autoreplace(spa_t *spa, vdev_t *vd)
858 zfs_post_common(spa, vd, FM_RESOURCE_AUTOREPLACE);
868 zfs_post_state_change(spa_t *spa, vdev_t *vd)
870 zfs_post_common(spa, vd, FM_RESOURCE_STATECHANGE);