Searched refs:spa (Results 1 - 25 of 137) sorted by relevance

123456

/illumos-gate/usr/src/test/zfs-tests/tests/functional/mdb/
H A Dmdb_001_pos.ksh55 typeset spa=$(mdb -ke "::spa" | awk "/$TESTPOOL/ {print \$1}")
58 typeset bp=$(mdb -ke "$spa + $off_ub + $off_rbp =J")
70 "::walk spa" \
71 "::spa" \
72 "$spa ::spa " \
73 "$spa ::spa -c" \
74 "$spa
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dspa_misc.c85 * spa_refcount (per-spa zfs_refcount_t protected by mutex)
93 * spa_config_lock[] (per-spa array of rwlocks)
98 * - RW_READER to perform I/O to the spa
166 * The spa config locks cannot be normal rwlocks because we need the
247 * Everything except dprintf, spa, and indirect_remap is on by default
366 spa_load_failed(spa_t *spa, const char *fmt, ...) argument
375 zfs_dbgmsg("spa_load(%s, config %s): FAILED: %s", spa->spa_name,
376 spa->spa_trust_config ? "trusted" : "untrusted", buf);
381 spa_load_note(spa_t *spa, const char *fmt, ...) argument
390 zfs_dbgmsg("spa_load(%s, config %s): %s", spa
413 spa_config_lock_init(spa_t *spa) argument
426 spa_config_lock_destroy(spa_t *spa) argument
439 spa_config_tryenter(spa_t *spa, int locks, void *tag, krw_t rw) argument
470 spa_config_enter(spa_t *spa, int locks, void *tag, krw_t rw) argument
503 spa_config_exit(spa_t *spa, int locks, void *tag) argument
522 spa_config_held(spa_t *spa, int locks, krw_t rw) argument
553 spa_t *spa; local
582 spa_t *spa = arg; local
616 spa_t *spa; local
766 spa_remove(spa_t *spa) argument
877 spa_open_ref(spa_t *spa, void *tag) argument
889 spa_close(spa_t *spa, void *tag) argument
905 spa_async_close(spa_t *spa, void *tag) argument
916 spa_refcount_zero(spa_t *spa) argument
1056 spa_spare_poll(spa_t *spa) argument
1196 spa_vdev_enter(spa_t *spa) argument
1212 spa_vdev_config_enter(spa_t *spa) argument
1226 spa_vdev_config_exit(spa_t *spa, vdev_t *vd, uint64_t txg, int error, char *tag) argument
1309 spa_vdev_exit(spa_t *spa, vdev_t *vd, uint64_t txg, int error) argument
1324 spa_vdev_state_enter(spa_t *spa, int oplocks) argument
1351 spa_vdev_state_exit(spa_t *spa, vdev_t *vd, int error) argument
1399 spa_activate_mos_feature(spa_t *spa, const char *feature, dmu_tx_t *tx) argument
1416 spa_deactivate_mos_feature(spa_t *spa, const char *feature) argument
1430 spa_t *spa; local
1507 spa_generate_guid(spa_t *spa) argument
1553 spa_freeze(spa_t *spa) argument
1609 spa_activate_allocation_classes(spa_t *spa, dmu_tx_t *tx) argument
1625 spa_shutting_down(spa_t *spa) argument
1631 spa_get_dsl(spa_t *spa) argument
1637 spa_is_initializing(spa_t *spa) argument
1643 spa_indirect_vdevs_loaded(spa_t *spa) argument
1649 spa_get_rootblkptr(spa_t *spa) argument
1655 spa_set_rootblkptr(spa_t *spa, const blkptr_t *bp) argument
1661 spa_altroot(spa_t *spa, char *buf, size_t buflen) argument
1670 spa_sync_pass(spa_t *spa) argument
1676 spa_name(spa_t *spa) argument
1682 spa_guid(spa_t *spa) argument
1710 spa_load_guid(spa_t *spa) argument
1721 spa_last_synced_txg(spa_t *spa) argument
1727 spa_first_txg(spa_t *spa) argument
1733 spa_syncing_txg(spa_t *spa) argument
1743 spa_final_dirty_txg(spa_t *spa) argument
1749 spa_state(spa_t *spa) argument
1755 spa_load_state(spa_t *spa) argument
1761 spa_freeze_txg(spa_t *spa) argument
1768 spa_get_worst_case_asize(spa_t *spa, uint64_t lsize) argument
1781 spa_get_slop_space(spa_t *spa) argument
1788 spa_get_dspace(spa_t *spa) argument
1794 spa_get_checkpoint_space(spa_t *spa) argument
1800 spa_update_dspace(spa_t *spa) argument
1832 spa_get_failmode(spa_t *spa) argument
1838 spa_suspended(spa_t *spa) argument
1844 spa_version(spa_t *spa) argument
1850 spa_deflate(spa_t *spa) argument
1856 spa_normal_class(spa_t *spa) argument
1862 spa_log_class(spa_t *spa) argument
1868 spa_special_class(spa_t *spa) argument
1874 spa_dedup_class(spa_t *spa) argument
1883 spa_preferred_class(spa_t *spa, uint64_t size, dmu_object_type_t objtype, uint_t level, uint_t special_smallblk) argument
1941 spa_evicting_os_register(spa_t *spa, objset_t *os) argument
1949 spa_evicting_os_deregister(spa_t *spa, objset_t *os) argument
1958 spa_evicting_os_wait(spa_t *spa) argument
1969 spa_max_replication(spa_t *spa) argument
1982 spa_prev_software_version(spa_t *spa) argument
1988 spa_deadman_synctime(spa_t *spa) argument
1994 spa_get_autotrim(spa_t *spa) argument
2000 dva_get_dsize_sync(spa_t *spa, const dva_t *dva) argument
2016 bp_get_dsize_sync(spa_t *spa, const blkptr_t *bp) argument
2027 bp_get_dsize(spa_t *spa, const blkptr_t *bp) argument
2042 spa_dirty_data(spa_t *spa) argument
2161 spa_has_slogs(spa_t *spa) argument
2167 spa_get_log_state(spa_t *spa) argument
2173 spa_set_log_state(spa_t *spa, spa_log_state_t state) argument
2179 spa_is_root(spa_t *spa) argument
2185 spa_writeable(spa_t *spa) argument
2195 spa_has_pending_synctask(spa_t *spa) argument
2202 spa_mode(spa_t *spa) argument
2208 spa_bootfs(spa_t *spa) argument
2214 spa_delegation(spa_t *spa) argument
2220 spa_meta_objset(spa_t *spa) argument
2226 spa_dedup_checksum(spa_t *spa) argument
2235 spa_scan_stat_init(spa_t *spa) argument
2253 spa_scan_get_stats(spa_t *spa, pool_scan_stat_t *ps) argument
2286 spa_maxblocksize(spa_t *spa) argument
2295 spa_maxdnodesize(spa_t *spa) argument
2304 spa_multihost(spa_t *spa) argument
2332 spa_get_last_removal_txg(spa_t *spa) argument
2370 spa_trust_config(spa_t *spa) argument
2376 spa_missing_tvds_allowed(spa_t *spa) argument
2382 spa_syncing_log_sm(spa_t *spa) argument
2388 spa_set_missing_tvds(spa_t *spa, uint64_t missing) argument
2394 spa_top_vdevs_spacemap_addressable(spa_t *spa) argument
2405 spa_has_checkpoint(spa_t *spa) argument
2411 spa_importing_readonly_checkpoint(spa_t *spa) argument
2418 spa_min_claim_txg(spa_t *spa) argument
2435 spa_suspend_async_destroy(spa_t *spa) argument
[all...]
H A Dspa.c158 static boolean_t spa_has_active_shared_spare(spa_t *spa);
159 static int spa_load_impl(spa_t *spa, spa_import_type_t type, char **ereport);
160 static void spa_vdev_resilver_done(spa_t *spa);
272 * Get property values from the spa configuration.
275 spa_prop_get_config(spa_t *spa, nvlist_t **nvp) argument
277 vdev_t *rvd = spa->spa_root_vdev;
278 dsl_pool_t *pool = spa->spa_dsl_pool;
282 metaslab_class_t *mc = spa_normal_class(spa);
284 ASSERT(MUTEX_HELD(&spa->spa_props_lock));
288 alloc += metaslab_class_get_alloc(spa_special_class(spa));
393 spa_prop_get(spa_t *spa, nvlist_t **nvp) argument
500 spa_prop_validate(spa_t *spa, nvlist_t *props) argument
727 spa_configfile_set(spa_t *spa, nvlist_t *nvp, boolean_t need_sync) argument
752 spa_prop_set(spa_t *spa, nvlist_t *nvp) argument
814 spa_prop_clear_bootfs(spa_t *spa, uint64_t dsobj, dmu_tx_t *tx) argument
829 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
855 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
881 spa_change_guid(spa_t *spa) argument
928 spa_get_errlists(spa_t *spa, avl_tree_t *last, avl_tree_t *scrub) argument
944 spa_taskqs_init(spa_t *spa, zio_type_t t, zio_taskq_type_t q) argument
1021 spa_taskqs_fini(spa_t *spa, zio_type_t t, zio_taskq_type_t q) argument
1046 spa_taskq_dispatch_ent(spa_t *spa, zio_type_t t, zio_taskq_type_t q, task_func_t *func, void *arg, uint_t flags, taskq_ent_t *ent) argument
1065 spa_create_zio_taskqs(spa_t *spa) argument
1080 spa_t *spa = arg; local
1148 spa_activate(spa_t *spa, int mode) argument
1229 spa_deactivate(spa_t *spa) argument
1319 spa_config_parse(spa_t *spa, vdev_t **vdp, nvlist_t *nv, vdev_t *parent, uint_t id, int atype) argument
1360 spa_should_flush_logs_on_unload(spa_t *spa) argument
1385 spa_unload_log_sm_flush_all(spa_t *spa) argument
1399 spa_unload_log_sm_metadata(spa_t *spa) argument
1426 spa_unload(spa_t *spa) argument
1579 spa_load_spares(spa_t *spa) argument
1708 spa_load_l2cache(spa_t *spa) argument
1844 load_nvlist(spa_t *spa, uint64_t obj, nvlist_t **value) argument
1874 spa_healthy_core_tvds(spa_t *spa) argument
1908 spa_check_for_missing_logs(spa_t *spa) argument
1979 spa_check_logs(spa_t *spa) argument
1998 spa_passivate_log(spa_t *spa) argument
2022 spa_activate_log(spa_t *spa) argument
2038 spa_reset_logs(spa_t *spa) argument
2065 spa_t *spa = zio->io_spa; local
2088 spa_t *spa = zio->io_spa; local
2115 spa_load_verify_cb(spa_t *spa, zilog_t *zilog, const blkptr_t *bp, const zbookmark_phys_t *zb, const dnode_phys_t *dnp, void *arg) argument
2157 spa_load_verify(spa_t *spa) argument
2241 spa_prop_find(spa_t *spa, zpool_prop_t prop, uint64_t *val) argument
2251 spa_dir_prop(spa_t *spa, const char *name, uint64_t *val, boolean_t log_enoent) argument
2272 spa_spawn_aux_threads(spa_t *spa) argument
2303 spa_try_repair(spa_t *spa, nvlist_t *config) argument
2369 spa_load(spa_t *spa, spa_load_state_t state, spa_import_type_t type) argument
2408 spa_t *spa = vd->vdev_spa; local
2432 spa_activity_check_required(spa_t *spa, uberblock_t *ub, nvlist_t *label, nvlist_t *config) argument
2503 spa_activity_check_duration(spa_t *spa, uberblock_t *ub) argument
2574 spa_activity_check(spa_t *spa, uberblock_t *ub, nvlist_t *config) argument
2698 spa_verify_host(spa_t *spa, nvlist_t *mos_config) argument
2728 spa_ld_parse_config(spa_t *spa, spa_import_type_t type) argument
2840 spa_ld_open_vdevs(spa_t *spa) argument
2904 spa_ld_validate_vdevs(spa_t *spa) argument
2929 spa_ld_select_uberblock_done(spa_t *spa, uberblock_t *ub) argument
2942 spa_ld_select_uberblock(spa_t *spa, spa_import_type_t type) argument
3111 spa_ld_open_rootbp(spa_t *spa) argument
3128 spa_ld_trusted_config(spa_t *spa, spa_import_type_t type, boolean_t reloading) argument
3293 spa_ld_open_indirect_vdev_metadata(spa_t *spa) argument
3323 spa_ld_check_features(spa_t *spa, boolean_t *missing_feat_writep) argument
3448 spa_ld_load_special_directories(spa_t *spa) argument
3465 spa_ld_get_props(spa_t *spa) argument
3609 spa_ld_open_aux_vdevs(spa_t *spa, spa_import_type_t type) argument
3668 spa_ld_load_vdev_metadata(spa_t *spa) argument
3732 spa_ld_load_dedup_tables(spa_t *spa) argument
3747 spa_ld_verify_logs(spa_t *spa, spa_import_type_t type, char **ereport) argument
3770 spa_ld_verify_pool_data(spa_t *spa) argument
3793 spa_ld_claim_log_blocks(spa_t *spa) argument
3818 spa_ld_check_for_config_update(spa_t *spa, uint64_t config_cache_txg, boolean_t update_config_cache) argument
3850 spa_ld_prepare_for_reload(spa_t *spa) argument
3868 spa_ld_read_checkpoint_txg(spa_t *spa) argument
3896 spa_ld_mos_init(spa_t *spa, spa_import_type_t type) argument
3969 spa_ld_checkpoint_rewind(spa_t *spa) argument
4061 spa_ld_mos_with_trusted_config(spa_t *spa, spa_import_type_t type, boolean_t *update_config_cache) argument
4112 spa_load_impl(spa_t *spa, spa_import_type_t type, char **ereport) argument
4357 spa_load_retry(spa_t *spa, spa_load_state_t state) argument
4383 spa_load_best(spa_t *spa, spa_load_state_t state, uint64_t max_request, int rewind_flags) argument
4494 spa_t *spa; local
4622 spa_t *spa; local
4636 spa_inject_delref(spa_t *spa) argument
4647 spa_add_spares(spa_t *spa, nvlist_t *config) argument
4696 spa_add_l2cache(spa_t *spa, nvlist_t *config) argument
4748 spa_add_feature_stats(spa_t *spa, nvlist_t *config) argument
4793 spa_t *spa; local
4867 spa_validate_aux_devs(spa_t *spa, nvlist_t *nvroot, uint64_t crtxg, int mode, spa_aux_vdev_t *sav, const char *config, uint64_t version, vdev_labeltype_t label) argument
4936 spa_validate_aux(spa_t *spa, nvlist_t *nvroot, uint64_t crtxg, int mode) argument
5003 spa_l2cache_drop(spa_t *spa) argument
5044 spa_t *spa; local
5430 spa_t *spa; local
5548 spa_t *spa; local
5734 spa_t *spa; local
5851 spa_t *spa; local
6005 spa_vdev_add(spa_t *spa, nvlist_t *nvroot) argument
6140 spa_vdev_attach(spa_t *spa, uint64_t guid, nvlist_t *nvroot, int replacing) argument
6359 spa_vdev_detach(spa_t *spa, uint64_t guid, uint64_t pguid, int replace_done) argument
6613 spa_vdev_initialize_impl(spa_t *spa, uint64_t guid, uint64_t cmd_type, list_t *vd_list) argument
6677 spa_vdev_initialize(spa_t *spa, nvlist_t *nv, uint64_t cmd_type, nvlist_t *vdev_errlist) argument
6724 spa_vdev_trim_impl(spa_t *spa, uint64_t guid, uint64_t cmd_type, uint64_t rate, boolean_t partial, boolean_t secure, list_t *vd_list) argument
6797 spa_vdev_trim(spa_t *spa, nvlist_t *nv, uint64_t cmd_type, uint64_t rate, boolean_t partial, boolean_t secure, nvlist_t *vdev_errlist) argument
6847 spa_vdev_split_mirror(spa_t *spa, char *newname, nvlist_t *config, nvlist_t *props, boolean_t exp) argument
7268 spa_vdev_resilver_done(spa_t *spa) argument
7309 spa_vdev_set_common(spa_t *spa, uint64_t guid, const char *value, boolean_t ispath) argument
7346 spa_vdev_setpath(spa_t *spa, uint64_t guid, const char *newpath) argument
7352 spa_vdev_setfru(spa_t *spa, uint64_t guid, const char *newfru) argument
7363 spa_scrub_pause_resume(spa_t *spa, pool_scrub_cmd_t cmd) argument
7374 spa_scan_stop(spa_t *spa) argument
7383 spa_scan(spa_t *spa, pool_scan_func_t func) argument
7414 spa_async_remove(spa_t *spa, vdev_t *vd) argument
7439 spa_async_probe(spa_t *spa, vdev_t *vd) argument
7451 spa_async_autoexpand(spa_t *spa, vdev_t *vd) argument
7484 spa_t *spa = (spa_t *)arg; local
7603 spa_async_suspend(spa_t *spa) argument
7623 spa_async_resume(spa_t *spa) argument
7641 spa_async_tasks_pending(spa_t *spa) argument
7661 spa_async_dispatch(spa_t *spa) argument
7674 spa_async_request(spa_t *spa, int task) argument
7711 spa_sync_frees(spa_t *spa, bplist_t *bpl, dmu_tx_t *tx) argument
7723 spa_sync_deferred_frees(spa_t *spa, dmu_tx_t *tx) argument
7748 spa_sync_nvlist(spa_t *spa, uint64_t obj, nvlist_t *nv, dmu_tx_t *tx) argument
7780 spa_sync_aux_dev(spa_t *spa, spa_aux_vdev_t *sav, dmu_tx_t *tx, const char *config, const char *entry) argument
7832 spa_t *spa = vd->vdev_spa; local
7847 spa_sync_config_object(spa_t *spa, dmu_tx_t *tx) argument
7962 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
7984 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
8138 spa_sync_upgrades(spa_t *spa, dmu_tx_t *tx) argument
8243 spa_sync_adjust_vdev_max_queue_depth(spa_t *spa) argument
8297 spa_sync_condense_indirect(spa_t *spa, dmu_tx_t *tx) argument
8314 spa_sync_iterate_to_convergence(spa_t *spa, dmu_tx_t *tx) argument
8401 spa_sync_rewrite_vdev_config(spa_t *spa, dmu_tx_t *tx) argument
8461 spa_sync(spa_t *spa, uint64_t txg) argument
8658 spa_t *spa = NULL; local
8685 spa_t *spa; local
8714 spa_lookup_by_guid(spa_t *spa, uint64_t guid, boolean_t aux) argument
8740 spa_upgrade(spa_t *spa, uint64_t version) argument
8763 spa_has_spare(spa_t *spa, uint64_t guid) argument
8787 spa_has_active_shared_spare(spa_t *spa) argument
8804 spa_total_metaslabs(spa_t *spa) argument
8819 spa_event_create(spa_t *spa, vdev_t *vd, nvlist_t *hist_nvl, const char *name) argument
8899 spa_event_notify(spa_t *spa, vdev_t *vd, nvlist_t *hist_nvl, const char *name) argument
[all...]
H A Dspa_errlog.c52 #include <sys/spa.h>
89 * spa's list of pending errors. The changes are actually synced out to disk
93 spa_log_error(spa_t *spa, const zbookmark_phys_t *zb) argument
104 if (spa_load_state(spa) == SPA_LOAD_TRYIMPORT)
107 mutex_enter(&spa->spa_errlist_lock);
113 if (spa->spa_scrub_active || spa->spa_scrub_finished)
114 tree = &spa->spa_errlist_scrub;
116 tree = &spa->spa_errlist_last;
120 mutex_exit(&spa
137 spa_get_errlog_size(spa_t *spa) argument
163 process_error_log(spa_t *spa, uint64_t obj, void *addr, size_t *count) argument
232 spa_get_errlog(spa_t *spa, void *uaddr, size_t *count) argument
266 spa_errlog_rotate(spa_t *spa) argument
278 spa_errlog_drain(spa_t *spa) argument
301 sync_error_list(spa_t *spa, avl_tree_t *t, uint64_t *obj, dmu_tx_t *tx) argument
342 spa_errlog_sync(spa_t *spa, uint64_t txg) argument
[all...]
H A Dzfeature.c174 spa_features_check(spa_t *spa, boolean_t for_write, argument
177 objset_t *os = spa->spa_meta_objset;
182 spa->spa_feat_for_write_obj : spa->spa_feat_for_read_obj;
204 if (zap_lookup(os, spa->spa_feat_desc_obj,
226 feature_get_refcount(spa_t *spa, zfeature_info_t *feature, uint64_t *res) argument
229 if (spa->spa_feat_refcount_cache[feature->fi_feature] ==
233 *res = spa->spa_feat_refcount_cache[feature->fi_feature];
243 feature_get_refcount_from_disk(spa_t *spa, zfeature_info_t *feature, argument
249 spa
272 feature_get_enabled_txg(spa_t *spa, zfeature_info_t *feature, uint64_t *res) argument
296 feature_sync(spa_t *spa, zfeature_info_t *feature, uint64_t refcount, dmu_tx_t *tx) argument
331 feature_enable_sync(spa_t *spa, zfeature_info_t *feature, dmu_tx_t *tx) argument
388 feature_do_action(spa_t *spa, spa_feature_t fid, feature_action_t action, dmu_tx_t *tx) argument
423 spa_feature_create_zap_objects(spa_t *spa, dmu_tx_t *tx) argument
447 spa_feature_enable(spa_t *spa, spa_feature_t fid, dmu_tx_t *tx) argument
455 spa_feature_incr(spa_t *spa, spa_feature_t fid, dmu_tx_t *tx) argument
461 spa_feature_decr(spa_t *spa, spa_feature_t fid, dmu_tx_t *tx) argument
467 spa_feature_is_enabled(spa_t *spa, spa_feature_t fid) argument
482 spa_feature_is_active(spa_t *spa, spa_feature_t fid) argument
506 spa_feature_enabled_txg(spa_t *spa, spa_feature_t fid, uint64_t *txg) argument
[all...]
H A Dspa_checkpoint.c144 #include <sys/spa.h>
164 spa_checkpoint_get_stats(spa_t *spa, pool_checkpoint_stat_t *pcs) argument
166 if (!spa_feature_is_active(spa, SPA_FEATURE_POOL_CHECKPOINT))
171 int error = zap_contains(spa_meta_objset(spa),
180 pcs->pcs_space = spa->spa_checkpoint_info.sci_dspace;
181 pcs->pcs_start_time = spa->spa_checkpoint_info.sci_timestamp;
189 spa_t *spa = arg; local
191 spa->spa_checkpoint_info.sci_timestamp = 0;
193 spa_feature_decr(spa, SPA_FEATURE_POOL_CHECKPOINT, tx);
195 spa_history_log_internal(spa, "sp
254 spa_checkpoint_accounting_verify(spa_t *spa) argument
363 spa_checkpoint_discard_is_done(spa_t *spa) argument
383 spa_t *spa = arg; local
397 spa_t *spa = arg; local
453 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
478 spa_t *spa = dp->dp_spa; local
535 spa_t *spa; local
574 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
592 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
[all...]
H A Dspa_log_spacemap.c29 #include <sys/spa.h>
89 * - The per-spa field spa_metaslabs_by_flushed sorts all the metaslabs in
102 * - The per-spa field spa_sm_logs_by_txg can be thought as the in-memory
117 * - The per-spa field spa_log_summary is a list of entries that summarizes
302 spa_estimate_incoming_log_blocks(spa_t *spa) argument
304 ASSERT3U(spa_sync_pass(spa), ==, 1);
307 for (spa_log_sm_t *sls = avl_last(&spa->spa_sm_logs_by_txg);
309 sls = AVL_PREV(&spa->spa_sm_logs_by_txg, sls)) {
310 if (sls->sls_txg == spa_syncing_txg(spa)) {
324 spa_log_sm_blocklimit(spa_t *spa) argument
330 spa_log_sm_set_blocklimit(spa_t *spa) argument
344 spa_log_sm_nblocks(spa_t *spa) argument
354 spa_log_summary_verify_counts(spa_t *spa) argument
384 summary_entry_is_full(spa_t *spa, log_summary_entry_t *e) argument
406 spa_log_summary_decrement_mscount(spa_t *spa, uint64_t txg) argument
493 spa_log_summary_decrement_blkcount(spa_t *spa, uint64_t blocks_gone) argument
536 spa_log_sm_decrement_mscount(spa_t *spa, uint64_t txg) argument
556 spa_log_sm_increment_current_mscount(spa_t *spa) argument
565 summary_add_data(spa_t *spa, uint64_t txg, uint64_t metaslabs_flushed, uint64_t nblocks) argument
582 spa_log_summary_add_incoming_blocks(spa_t *spa, uint64_t nblocks) argument
588 spa_log_summary_add_flushed_metaslab(spa_t *spa) argument
606 spa_estimate_metaslabs_to_flush(spa_t *spa) argument
693 spa_log_sm_memused(spa_t *spa) argument
699 spa_log_exceeds_memlimit(spa_t *spa) argument
713 spa_flush_all_logs_requested(spa_t *spa) argument
719 spa_flush_metaslabs(spa_t *spa, dmu_tx_t *tx) argument
847 spa_sync_close_syncing_log_sm(spa_t *spa) argument
886 spa_cleanup_old_sm_logs(spa_t *spa, dmu_tx_t *tx) argument
926 spa_generate_syncing_log_sm(spa_t *spa, dmu_tx_t *tx) argument
983 spa_ld_log_sm_metadata(spa_t *spa) argument
1062 spa_t *spa = slls->slls_spa; local
1104 spa_ld_log_sm_data(spa_t *spa) argument
1206 spa_t *spa = vd->vdev_spa; local
1259 spa_ld_log_spacemaps(spa_t *spa) argument
[all...]
H A Dmmp.c28 #include <sys/spa.h>
194 mmp_init(spa_t *spa) argument
196 mmp_thread_t *mmp = &spa->spa_mmp;
213 mmp_fini(spa_t *spa) argument
215 mmp_thread_t *mmp = &spa->spa_mmp;
240 mmp_thread_start(spa_t *spa) argument
242 mmp_thread_t *mmp = &spa->spa_mmp;
244 if (spa_writeable(spa)) {
248 spa, 0, &p0, TS_RUN, minclsyspri);
250 "gethrtime %llu", spa_name(spa), gethrtim
257 mmp_thread_stop(spa_t *spa) argument
293 mmp_next_leaf(spa_t *spa) argument
356 mmp_delay_update(spa_t *spa, boolean_t write_completed) argument
391 spa_t *spa = zio->io_spa; local
416 mmp_update_uberblock(spa_t *spa, uberblock_t *ub) argument
434 mmp_write_uberblock(spa_t *spa) argument
548 spa_t *spa = (spa_t *)arg; local
702 mmp_signal_thread(spa_t *spa) argument
715 spa_t *spa = NULL; local
[all...]
H A Dspa_config.c29 #include <sys/spa.h>
58 * maintained independently in spa.c. Whenever the namespace is modified, or
226 spa_t *spa = NULL; local
234 while ((spa = spa_next(spa)) != NULL) {
237 * ourselves from the spa namespace or any pool that
242 if ((spa == target && removing) ||
243 !spa_writeable(spa))
246 mutex_enter(&spa->spa_props_lock);
247 tdp = list_head(&spa
323 spa_t *spa = NULL; local
347 spa_config_set(spa_t *spa, nvlist_t *config) argument
363 spa_config_generate(spa_t *spa, vdev_t *vd, uint64_t txg, int getstats) argument
517 spa_config_update(spa_t *spa, int what) argument
[all...]
H A Dvdev_removal.c58 * into a hole vdev while holding spa config locks.
138 spa_sync_removing_state(spa_t *spa, dmu_tx_t *tx) argument
140 VERIFY0(zap_update(spa->spa_dsl_pool->dp_meta_objset,
143 sizeof (spa->spa_removing_phys) / sizeof (uint64_t),
144 &spa->spa_removing_phys, tx));
237 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
238 vdev_t *vd = vdev_lookup_top(spa, vdev_id);
240 objset_t *mos = spa->spa_dsl_pool->dp_meta_objset;
250 spa_feature_incr(spa, SPA_FEATURE_DEVICE_REMOVAL, tx);
251 if (spa_feature_is_enabled(spa, SPA_FEATURE_OBSOLETE_COUNT
366 spa_remove_init(spa_t *spa) argument
444 spa_restart_removal(spa_t *spa) argument
479 spa_t *spa = vd->vdev_spa; local
659 spa_finish_removal(spa_t *spa, dsl_scan_state_t state, dmu_tx_t *tx) argument
713 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
753 spa_t *spa = vcsa->vcsa_spa; local
909 spa_t *spa = vd->vdev_spa; local
1042 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
1094 spa_t *spa = vd->vdev_spa; local
1135 vdev_remove_complete(spa_t *spa) argument
1214 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
1349 spa_t *spa = arg; local
1516 spa_vdev_remove_suspend(spa_t *spa) argument
1535 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
1550 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
1678 spa_vdev_remove_cancel(spa_t *spa) argument
1702 svr_sync(spa_t *spa, dmu_tx_t *tx) argument
1732 spa_t *spa = vd->vdev_spa; local
1757 spa_t *spa = vd->vdev_spa; local
1873 spa_t *spa = vd->vdev_spa; local
1978 spa_t *spa = vd->vdev_spa; local
2065 spa_vdev_remove(spa_t *spa, uint64_t guid, boolean_t unspare) argument
2162 spa_removal_get_stats(spa_t *spa, pool_removal_stat_t *prs) argument
[all...]
H A Dspa_history.c29 #include <sys/spa.h>
87 spa_history_create_obj(spa_t *spa, dmu_tx_t *tx) argument
91 objset_t *mos = spa->spa_meta_objset;
93 ASSERT(spa->spa_history == 0);
94 spa->spa_history = dmu_object_alloc(mos, DMU_OT_SPA_HISTORY,
100 &spa->spa_history, tx) == 0);
102 VERIFY(0 == dmu_bonus_hold(mos, spa->spa_history, FTAG, &dbp));
113 metaslab_class_get_dspace(spa_normal_class(spa)) / 1000;
124 spa_history_advance_bof(spa_t *spa, spa_history_phys_t *shpp) argument
126 objset_t *mos = spa
151 spa_history_write(spa_t *spa, void *buf, uint64_t len, spa_history_phys_t *shpp, dmu_tx_t *tx) argument
210 spa_history_log_notify(spa_t *spa, nvlist_t *nvl) argument
268 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
371 spa_history_log(spa_t *spa, const char *msg) argument
383 spa_history_log_nvl(spa_t *spa, nvlist_t *nvl) argument
425 spa_history_get(spa_t *spa, uint64_t *offp, uint64_t *len, char *buf) argument
522 log_internal(nvlist_t *nvl, const char *operation, spa_t *spa, dmu_tx_t *tx, const char *fmt, va_list adx) argument
555 spa_history_log_internal(spa_t *spa, const char *operation, dmu_tx_t *tx, const char *fmt, ...) argument
571 log_internal(fnvlist_alloc(), operation, spa, htx, fmt, adx); local
619 spa_history_log_version(spa_t *spa, const char *operation) argument
[all...]
H A Dvdev_queue.c318 spa_t *spa = zio->io_spa; local
324 mutex_enter(&spa->spa_iokstat_lock);
325 spa->spa_queue_stats[zio->io_priority].spa_queued++;
326 if (spa->spa_iokstat != NULL)
327 kstat_waitq_enter(spa->spa_iokstat->ks_data);
328 mutex_exit(&spa->spa_iokstat_lock);
334 spa_t *spa = zio->io_spa; local
340 mutex_enter(&spa->spa_iokstat_lock);
341 ASSERT3U(spa->spa_queue_stats[zio->io_priority].spa_queued, >, 0);
342 spa
351 spa_t *spa = zio->io_spa; local
367 spa_t *spa = zio->io_spa; local
432 vdev_queue_max_async_writes(spa_t *spa) argument
471 vdev_queue_class_max_active(spa_t *spa, zio_priority_t p) argument
502 spa_t *spa = vq->vq_vdev->vdev_spa; local
889 spa_t *spa = zio->io_spa; local
[all...]
H A Dvdev.c34 #include <sys/spa.h>
288 vdev_lookup_top(spa_t *spa, uint64_t vdev) argument
290 vdev_t *rvd = spa->spa_root_vdev;
292 ASSERT(spa_config_held(spa, SCL_ALL, RW_READER) != 0);
333 vdev_count_leaves(spa_t *spa) argument
335 return (vdev_count_leaves_impl(spa->spa_root_vdev));
344 spa_t *spa = cvd->vdev_spa; local
346 ASSERT(spa_config_held(spa, SCL_ALL, RW_WRITER) == SCL_ALL);
412 spa_t *spa = cvd->vdev_spa; local
413 list_remove(&spa
458 vdev_alloc_common(spa_t *spa, uint_t id, uint64_t guid, vdev_ops_t *ops) argument
541 vdev_alloc(spa_t *spa, vdev_t **vdp, nvlist_t *nv, vdev_t *parent, uint_t id, int alloctype) argument
817 spa_t *spa = vd->vdev_spa; local
949 spa_t *spa = svd->vdev_spa; local
1063 spa_t *spa = cvd->vdev_spa; local
1137 spa_t *spa = vd->vdev_spa; local
1186 spa_t *spa = vd->vdev_spa; local
1328 spa_t *spa = zio->io_spa; local
1390 spa_t *spa = vd->vdev_spa; local
1556 spa_t *spa = vd->vdev_spa; local
1796 spa_t *spa = vd->vdev_spa; local
2095 spa_t *spa = vd->vdev_spa; local
2128 spa_t *spa = vd->vdev_spa; local
2144 spa_t *spa = vd->vdev_spa; local
2163 spa_t *spa = vd->vdev_spa; local
2470 spa_t *spa = vd->vdev_spa; local
2508 spa_t *spa = vd->vdev_spa; local
2619 spa_t *spa = vd->vdev_spa; local
2652 spa_t *spa = vd->vdev_spa; local
2676 spa_t *spa = vd->vdev_spa; local
2686 spa_t *spa = vd->vdev_spa; local
2722 spa_t *spa = vd->vdev_spa; local
2801 spa_t *spa = vd->vdev_spa; local
2910 spa_t *spa = vd->vdev_spa; local
3102 spa_t *spa = vd->vdev_spa; local
3138 spa_t *spa = vd->vdev_spa; local
3204 vdev_fault(spa_t *spa, uint64_t guid, vdev_aux_t aux) argument
3260 vdev_degrade(spa_t *spa, uint64_t guid, vdev_aux_t aux) argument
3295 vdev_online(spa_t *spa, uint64_t guid, uint64_t flags, vdev_state_t *newstate) argument
3376 vdev_offline_locked(spa_t *spa, uint64_t guid, uint64_t flags) argument
3479 vdev_offline(spa_t *spa, uint64_t guid, uint64_t flags) argument
3496 vdev_clear(spa_t *spa, vdev_t *vd) argument
3658 spa_t *spa = vd->vdev_spa; local
3755 spa_t *spa = zio->io_spa; local
3921 spa_t *spa = vd->vdev_spa; local
3965 spa_t *spa = vd->vdev_spa; local
4039 spa_t *spa = vd->vdev_spa; local
4058 spa_t *spa = vd->vdev_spa; local
4081 spa_t *spa = vd->vdev_spa; local
4097 spa_t *spa = vd->vdev_spa; local
4163 spa_t *spa = vd->vdev_spa; local
4426 spa_t *spa = vd->vdev_spa; local
4451 vdev_set_deferred_resilver(spa_t *spa, vdev_t *vd) argument
[all...]
H A Dvdev_indirect.c22 #include <sys/spa.h>
124 * - When syncing the spa: process dp_obsolete_bpobj, moving ranges to
326 spa_t *spa = vd->vdev_spa; local
334 if (spa_feature_is_enabled(spa, SPA_FEATURE_OBSOLETE_COUNTS)) {
338 vdev_dirty(vd, 0, NULL, spa_syncing_txg(spa));
348 spa_vdev_indirect_mark_obsolete(spa_t *spa, uint64_t vdev_id, uint64_t offset, argument
351 vdev_t *vd = vdev_lookup_top(spa, vdev_id);
360 spa_condensing_indirect_create(spa_t *spa) argument
363 &spa->spa_condensing_indirect_phys;
365 objset_t *mos = spa
395 spa_t *spa = vd->vdev_spa; local
482 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
545 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
560 spa_condense_indirect_commit_entry(spa_t *spa, vdev_indirect_mapping_entry_phys_t *vimep, uint32_t count) argument
595 spa_t *spa = vd->vdev_spa; local
640 spa_t *spa = arg; local
649 spa_t *spa = arg; local
755 spa_t *spa = vd->vdev_spa; local
811 spa_t *spa = vd->vdev_spa; local
846 spa_condense_init(spa_t *spa) argument
867 spa_condense_fini(spa_t *spa) argument
876 spa_start_indirect_condensing_thread(spa_t *spa) argument
1041 spa_t *spa = vd->vdev_spa; local
1280 spa_t *spa = zio->io_spa; local
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Dzfeature.h41 struct spa;
45 extern void spa_feature_create_zap_objects(struct spa *, struct dmu_tx *);
46 extern void spa_feature_enable(struct spa *, spa_feature_t,
48 extern void spa_feature_incr(struct spa *, spa_feature_t, struct dmu_tx *);
49 extern void spa_feature_decr(struct spa *, spa_feature_t, struct dmu_tx *);
50 extern boolean_t spa_feature_is_enabled(struct spa *, spa_feature_t);
51 extern boolean_t spa_feature_is_active(struct spa *, spa_feature_t);
52 extern boolean_t spa_feature_enabled_txg(spa_t *spa, spa_feature_t fid,
61 extern int feature_get_refcount(struct spa *, zfeature_info_t *, uint64_t *);
62 extern int feature_get_refcount_from_disk(spa_t *spa, zfeature_info_
[all...]
H A Dvdev_trim.h29 #include <sys/spa.h>
41 extern void vdev_trim_stop_wait(spa_t *spa, list_t *vd_list);
43 extern void vdev_autotrim(spa_t *spa);
44 extern void vdev_autotrim_stop_all(spa_t *spa);
46 extern void vdev_autotrim_restart(spa_t *spa);
H A Dmmp.h22 #include <sys/spa.h>
58 extern void mmp_init(struct spa *spa);
59 extern void mmp_fini(struct spa *spa);
60 extern void mmp_thread_start(struct spa *spa);
61 extern void mmp_thread_stop(struct spa *spa);
62 extern void mmp_update_uberblock(struct spa *sp
[all...]
H A Dspa.h54 typedef struct spa spa_t;
772 extern void spa_async_request(spa_t *spa, int flag);
773 extern void spa_async_unrequest(spa_t *spa, int flag);
774 extern void spa_async_suspend(spa_t *spa);
775 extern void spa_async_resume(spa_t *spa);
777 extern void spa_inject_delref(spa_t *spa);
778 extern void spa_scan_stat_init(spa_t *spa);
779 extern int spa_scan_get_stats(spa_t *spa, pool_scan_stat_t *ps);
800 extern int spa_vdev_add(spa_t *spa, nvlist_t *nvroot);
801 extern int spa_vdev_attach(spa_t *spa, uint64_
[all...]
H A Dvdev_initialize.h29 #include <sys/spa.h>
40 extern void vdev_initialize_stop_wait(spa_t *spa, list_t *vd_list);
H A Dblkptr.h23 #include <sys/spa.h>
H A Ddmu_traverse.h30 #include <sys/spa.h>
42 typedef int (blkptr_cb_t)(spa_t *spa, zilog_t *zilog, const blkptr_t *bp,
68 int traverse_dataset_destroyed(spa_t *spa, blkptr_t *blkptr,
71 int traverse_pool(spa_t *spa,
H A Duberblock.h32 #include <sys/spa.h>
/illumos-gate/usr/src/cmd/zhack/
H A Dzhack.c37 #include <sys/spa.h>
87 fatal(spa_t *spa, void *tag, const char *fmt, ...) argument
91 if (spa != NULL) {
92 spa_close(spa, tag);
166 zhack_spa_open(char *target, boolean_t readonly, void *tag, spa_t **spa) argument
173 err = spa_open(target, spa, tag);
177 fatal(*spa, FTAG, "cannot open '%s': %s", target,
179 if (spa_version(*spa) < SPA_VERSION_FEATURES) {
180 fatal(*spa, FTAG, "'%s' has version %d, features not enabled",
181 target, (int)spa_version(*spa));
212 dump_mos(spa_t *spa) argument
227 spa_t *spa; local
257 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
272 spa_t *spa; local
339 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
352 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
368 spa_t *spa; local
[all...]
/illumos-gate/usr/src/boot/lib/libstand/zfs/
H A Dzfs.c140 const spa_t *spa = ((struct zfsmount *)f->f_devdata)->spa; local
153 rc = dnode_read(spa, &fp->f_dnode, fp->f_seekp, start, n);
197 const spa_t *spa = ((struct zfsmount *)f->f_devdata)->spa; local
200 return (zfs_dnode_stat(spa, &fp->f_dnode, sb));
206 const spa_t *spa = ((struct zfsmount *)f->f_devdata)->spa; local
223 rc = dnode_read(spa, &fp->f_dnode, 0, &fp->f_zap_type,
231 rc = dnode_read(spa,
457 spa_t *spa; local
502 spa_t *spa; local
615 spa_t *spa; local
647 spa_t *spa; local
715 spa_t *spa; local
761 spa_t *spa; local
820 spa_t *spa; local
862 spa_t *spa; local
[all...]
/illumos-gate/usr/src/common/zfs/
H A Dzfs_fletcher.h34 #include <sys/spa.h>

Completed in 437 milliseconds

123456