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.c83 * spa_refcount (per-spa zfs_refcount_t protected by mutex)
91 * spa_config_lock[] (per-spa array of rwlocks)
96 * - RW_READER to perform I/O to the spa
164 * The spa config locks cannot be normal rwlocks because we need the
245 * Everything except dprintf, spa, and indirect_remap is on by default
364 spa_load_failed(spa_t *spa, const char *fmt, ...) argument
373 zfs_dbgmsg("spa_load(%s, config %s): FAILED: %s", spa->spa_name,
374 spa->spa_trust_config ? "trusted" : "untrusted", buf);
379 spa_load_note(spa_t *spa, const char *fmt, ...) argument
388 zfs_dbgmsg("spa_load(%s, config %s): %s", spa
411 spa_config_lock_init(spa_t *spa) argument
424 spa_config_lock_destroy(spa_t *spa) argument
437 spa_config_tryenter(spa_t *spa, int locks, void *tag, krw_t rw) argument
468 spa_config_enter(spa_t *spa, int locks, void *tag, krw_t rw) argument
501 spa_config_exit(spa_t *spa, int locks, void *tag) argument
520 spa_config_held(spa_t *spa, int locks, krw_t rw) argument
551 spa_t *spa; local
580 spa_t *spa = arg; local
614 spa_t *spa; local
764 spa_remove(spa_t *spa) argument
875 spa_open_ref(spa_t *spa, void *tag) argument
887 spa_close(spa_t *spa, void *tag) argument
903 spa_async_close(spa_t *spa, void *tag) argument
914 spa_refcount_zero(spa_t *spa) argument
1159 spa_vdev_enter(spa_t *spa) argument
1175 spa_vdev_config_enter(spa_t *spa) argument
1189 spa_vdev_config_exit(spa_t *spa, vdev_t *vd, uint64_t txg, int error, char *tag) argument
1272 spa_vdev_exit(spa_t *spa, vdev_t *vd, uint64_t txg, int error) argument
1287 spa_vdev_state_enter(spa_t *spa, int oplocks) argument
1314 spa_vdev_state_exit(spa_t *spa, vdev_t *vd, int error) argument
1362 spa_activate_mos_feature(spa_t *spa, const char *feature, dmu_tx_t *tx) argument
1379 spa_deactivate_mos_feature(spa_t *spa, const char *feature) argument
1393 spa_t *spa; local
1470 spa_generate_guid(spa_t *spa) argument
1516 spa_freeze(spa_t *spa) argument
1572 spa_activate_allocation_classes(spa_t *spa, dmu_tx_t *tx) argument
1588 spa_shutting_down(spa_t *spa) argument
1594 spa_get_dsl(spa_t *spa) argument
1600 spa_is_initializing(spa_t *spa) argument
1606 spa_indirect_vdevs_loaded(spa_t *spa) argument
1612 spa_get_rootblkptr(spa_t *spa) argument
1618 spa_set_rootblkptr(spa_t *spa, const blkptr_t *bp) argument
1624 spa_altroot(spa_t *spa, char *buf, size_t buflen) argument
1633 spa_sync_pass(spa_t *spa) argument
1639 spa_name(spa_t *spa) argument
1645 spa_guid(spa_t *spa) argument
1673 spa_load_guid(spa_t *spa) argument
1684 spa_last_synced_txg(spa_t *spa) argument
1690 spa_first_txg(spa_t *spa) argument
1696 spa_syncing_txg(spa_t *spa) argument
1706 spa_final_dirty_txg(spa_t *spa) argument
1712 spa_state(spa_t *spa) argument
1718 spa_load_state(spa_t *spa) argument
1724 spa_freeze_txg(spa_t *spa) argument
1731 spa_get_worst_case_asize(spa_t *spa, uint64_t lsize) argument
1744 spa_get_slop_space(spa_t *spa) argument
1751 spa_get_dspace(spa_t *spa) argument
1757 spa_get_checkpoint_space(spa_t *spa) argument
1763 spa_update_dspace(spa_t *spa) argument
1795 spa_get_failmode(spa_t *spa) argument
1801 spa_suspended(spa_t *spa) argument
1807 spa_version(spa_t *spa) argument
1813 spa_deflate(spa_t *spa) argument
1819 spa_normal_class(spa_t *spa) argument
1825 spa_log_class(spa_t *spa) argument
1831 spa_special_class(spa_t *spa) argument
1837 spa_dedup_class(spa_t *spa) argument
1846 spa_preferred_class(spa_t *spa, uint64_t size, dmu_object_type_t objtype, uint_t level, uint_t special_smallblk) argument
1904 spa_evicting_os_register(spa_t *spa, objset_t *os) argument
1912 spa_evicting_os_deregister(spa_t *spa, objset_t *os) argument
1921 spa_evicting_os_wait(spa_t *spa) argument
1932 spa_max_replication(spa_t *spa) argument
1945 spa_prev_software_version(spa_t *spa) argument
1951 spa_deadman_synctime(spa_t *spa) argument
1957 spa_get_autotrim(spa_t *spa) argument
1963 dva_get_dsize_sync(spa_t *spa, const dva_t *dva) argument
1979 bp_get_dsize_sync(spa_t *spa, const blkptr_t *bp) argument
1990 bp_get_dsize(spa_t *spa, const blkptr_t *bp) argument
2005 spa_dirty_data(spa_t *spa) argument
2124 spa_has_slogs(spa_t *spa) argument
2130 spa_get_log_state(spa_t *spa) argument
2136 spa_set_log_state(spa_t *spa, spa_log_state_t state) argument
2142 spa_is_root(spa_t *spa) argument
2148 spa_writeable(spa_t *spa) argument
2158 spa_has_pending_synctask(spa_t *spa) argument
2165 spa_mode(spa_t *spa) argument
2171 spa_bootfs(spa_t *spa) argument
2177 spa_delegation(spa_t *spa) argument
2183 spa_meta_objset(spa_t *spa) argument
2189 spa_dedup_checksum(spa_t *spa) argument
2198 spa_scan_stat_init(spa_t *spa) argument
2216 spa_scan_get_stats(spa_t *spa, pool_scan_stat_t *ps) argument
2249 spa_maxblocksize(spa_t *spa) argument
2258 spa_maxdnodesize(spa_t *spa) argument
2267 spa_multihost(spa_t *spa) argument
2295 spa_get_last_removal_txg(spa_t *spa) argument
2333 spa_trust_config(spa_t *spa) argument
2339 spa_missing_tvds_allowed(spa_t *spa) argument
2345 spa_syncing_log_sm(spa_t *spa) argument
2351 spa_set_missing_tvds(spa_t *spa, uint64_t missing) argument
2357 spa_top_vdevs_spacemap_addressable(spa_t *spa) argument
2368 spa_has_checkpoint(spa_t *spa) argument
2374 spa_importing_readonly_checkpoint(spa_t *spa) argument
2381 spa_min_claim_txg(spa_t *spa) argument
2398 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);
265 * Get property values from the spa configuration.
268 spa_prop_get_config(spa_t *spa, nvlist_t **nvp) argument
270 vdev_t *rvd = spa->spa_root_vdev;
271 dsl_pool_t *pool = spa->spa_dsl_pool;
275 metaslab_class_t *mc = spa_normal_class(spa);
277 ASSERT(MUTEX_HELD(&spa->spa_props_lock));
281 alloc += metaslab_class_get_alloc(spa_special_class(spa));
386 spa_prop_get(spa_t *spa, nvlist_t **nvp) argument
493 spa_prop_validate(spa_t *spa, nvlist_t *props) argument
720 spa_configfile_set(spa_t *spa, nvlist_t *nvp, boolean_t need_sync) argument
745 spa_prop_set(spa_t *spa, nvlist_t *nvp) argument
807 spa_prop_clear_bootfs(spa_t *spa, uint64_t dsobj, dmu_tx_t *tx) argument
822 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
848 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
874 spa_change_guid(spa_t *spa) argument
921 spa_get_errlists(spa_t *spa, avl_tree_t *last, avl_tree_t *scrub) argument
937 spa_taskqs_init(spa_t *spa, zio_type_t t, zio_taskq_type_t q) argument
1014 spa_taskqs_fini(spa_t *spa, zio_type_t t, zio_taskq_type_t q) argument
1039 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
1058 spa_create_zio_taskqs(spa_t *spa) argument
1073 spa_t *spa = arg; local
1141 spa_activate(spa_t *spa, int mode) argument
1222 spa_deactivate(spa_t *spa) argument
1312 spa_config_parse(spa_t *spa, vdev_t **vdp, nvlist_t *nv, vdev_t *parent, uint_t id, int atype) argument
1353 spa_should_flush_logs_on_unload(spa_t *spa) argument
1378 spa_unload_log_sm_flush_all(spa_t *spa) argument
1392 spa_unload_log_sm_metadata(spa_t *spa) argument
1419 spa_unload(spa_t *spa) argument
1572 spa_load_spares(spa_t *spa) argument
1701 spa_load_l2cache(spa_t *spa) argument
1837 load_nvlist(spa_t *spa, uint64_t obj, nvlist_t **value) argument
1867 spa_healthy_core_tvds(spa_t *spa) argument
1901 spa_check_for_missing_logs(spa_t *spa) argument
1972 spa_check_logs(spa_t *spa) argument
1991 spa_passivate_log(spa_t *spa) argument
2015 spa_activate_log(spa_t *spa) argument
2031 spa_reset_logs(spa_t *spa) argument
2058 spa_t *spa = zio->io_spa; local
2081 spa_t *spa = zio->io_spa; local
2108 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
2150 spa_load_verify(spa_t *spa) argument
2234 spa_prop_find(spa_t *spa, zpool_prop_t prop, uint64_t *val) argument
2244 spa_dir_prop(spa_t *spa, const char *name, uint64_t *val, boolean_t log_enoent) argument
2265 spa_spawn_aux_threads(spa_t *spa) argument
2296 spa_try_repair(spa_t *spa, nvlist_t *config) argument
2362 spa_load(spa_t *spa, spa_load_state_t state, spa_import_type_t type) argument
2401 spa_t *spa = vd->vdev_spa; local
2425 spa_activity_check_required(spa_t *spa, uberblock_t *ub, nvlist_t *label, nvlist_t *config) argument
2496 spa_activity_check_duration(spa_t *spa, uberblock_t *ub) argument
2567 spa_activity_check(spa_t *spa, uberblock_t *ub, nvlist_t *config) argument
2691 spa_verify_host(spa_t *spa, nvlist_t *mos_config) argument
2721 spa_ld_parse_config(spa_t *spa, spa_import_type_t type) argument
2833 spa_ld_open_vdevs(spa_t *spa) argument
2897 spa_ld_validate_vdevs(spa_t *spa) argument
2922 spa_ld_select_uberblock_done(spa_t *spa, uberblock_t *ub) argument
2935 spa_ld_select_uberblock(spa_t *spa, spa_import_type_t type) argument
3104 spa_ld_open_rootbp(spa_t *spa) argument
3121 spa_ld_trusted_config(spa_t *spa, spa_import_type_t type, boolean_t reloading) argument
3286 spa_ld_open_indirect_vdev_metadata(spa_t *spa) argument
3316 spa_ld_check_features(spa_t *spa, boolean_t *missing_feat_writep) argument
3441 spa_ld_load_special_directories(spa_t *spa) argument
3458 spa_ld_get_props(spa_t *spa) argument
3602 spa_ld_open_aux_vdevs(spa_t *spa, spa_import_type_t type) argument
3661 spa_ld_load_vdev_metadata(spa_t *spa) argument
3725 spa_ld_load_dedup_tables(spa_t *spa) argument
3740 spa_ld_verify_logs(spa_t *spa, spa_import_type_t type, char **ereport) argument
3763 spa_ld_verify_pool_data(spa_t *spa) argument
3786 spa_ld_claim_log_blocks(spa_t *spa) argument
3811 spa_ld_check_for_config_update(spa_t *spa, uint64_t config_cache_txg, boolean_t update_config_cache) argument
3843 spa_ld_prepare_for_reload(spa_t *spa) argument
3861 spa_ld_read_checkpoint_txg(spa_t *spa) argument
3889 spa_ld_mos_init(spa_t *spa, spa_import_type_t type) argument
3962 spa_ld_checkpoint_rewind(spa_t *spa) argument
4054 spa_ld_mos_with_trusted_config(spa_t *spa, spa_import_type_t type, boolean_t *update_config_cache) argument
4105 spa_load_impl(spa_t *spa, spa_import_type_t type, char **ereport) argument
4350 spa_load_retry(spa_t *spa, spa_load_state_t state) argument
4376 spa_load_best(spa_t *spa, spa_load_state_t state, uint64_t max_request, int rewind_flags) argument
4487 spa_t *spa; local
4615 spa_t *spa; local
4629 spa_inject_delref(spa_t *spa) argument
4640 spa_add_spares(spa_t *spa, nvlist_t *config) argument
4689 spa_add_l2cache(spa_t *spa, nvlist_t *config) argument
4741 spa_add_feature_stats(spa_t *spa, nvlist_t *config) argument
4786 spa_t *spa; local
4860 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
4929 spa_validate_aux(spa_t *spa, nvlist_t *nvroot, uint64_t crtxg, int mode) argument
4996 spa_l2cache_drop(spa_t *spa) argument
5037 spa_t *spa; local
5423 spa_t *spa; local
5541 spa_t *spa; local
5727 spa_t *spa; local
5844 spa_t *spa; local
5998 spa_vdev_add(spa_t *spa, nvlist_t *nvroot) argument
6133 spa_vdev_attach(spa_t *spa, uint64_t guid, nvlist_t *nvroot, int replacing) argument
6352 spa_vdev_detach(spa_t *spa, uint64_t guid, uint64_t pguid, int replace_done) argument
6606 spa_vdev_initialize_impl(spa_t *spa, uint64_t guid, uint64_t cmd_type, list_t *vd_list) argument
6670 spa_vdev_initialize(spa_t *spa, nvlist_t *nv, uint64_t cmd_type, nvlist_t *vdev_errlist) argument
6717 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
6790 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
6840 spa_vdev_split_mirror(spa_t *spa, char *newname, nvlist_t *config, nvlist_t *props, boolean_t exp) argument
7261 spa_vdev_resilver_done(spa_t *spa) argument
7302 spa_vdev_set_common(spa_t *spa, uint64_t guid, const char *value, boolean_t ispath) argument
7339 spa_vdev_setpath(spa_t *spa, uint64_t guid, const char *newpath) argument
7345 spa_vdev_setfru(spa_t *spa, uint64_t guid, const char *newfru) argument
7356 spa_scrub_pause_resume(spa_t *spa, pool_scrub_cmd_t cmd) argument
7367 spa_scan_stop(spa_t *spa) argument
7376 spa_scan(spa_t *spa, pool_scan_func_t func) argument
7407 spa_async_remove(spa_t *spa, vdev_t *vd) argument
7432 spa_async_probe(spa_t *spa, vdev_t *vd) argument
7444 spa_async_autoexpand(spa_t *spa, vdev_t *vd) argument
7477 spa_t *spa = (spa_t *)arg; local
7594 spa_async_suspend(spa_t *spa) argument
7614 spa_async_resume(spa_t *spa) argument
7632 spa_async_tasks_pending(spa_t *spa) argument
7652 spa_async_dispatch(spa_t *spa) argument
7665 spa_async_request(spa_t *spa, int task) argument
7702 spa_sync_frees(spa_t *spa, bplist_t *bpl, dmu_tx_t *tx) argument
7714 spa_sync_deferred_frees(spa_t *spa, dmu_tx_t *tx) argument
7739 spa_sync_nvlist(spa_t *spa, uint64_t obj, nvlist_t *nv, dmu_tx_t *tx) argument
7771 spa_sync_aux_dev(spa_t *spa, spa_aux_vdev_t *sav, dmu_tx_t *tx, const char *config, const char *entry) argument
7823 spa_t *spa = vd->vdev_spa; local
7838 spa_sync_config_object(spa_t *spa, dmu_tx_t *tx) argument
7953 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
7975 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
8129 spa_sync_upgrades(spa_t *spa, dmu_tx_t *tx) argument
8234 spa_sync_adjust_vdev_max_queue_depth(spa_t *spa) argument
8288 spa_sync_condense_indirect(spa_t *spa, dmu_tx_t *tx) argument
8305 spa_sync_iterate_to_convergence(spa_t *spa, dmu_tx_t *tx) argument
8392 spa_sync_rewrite_vdev_config(spa_t *spa, dmu_tx_t *tx) argument
8452 spa_sync(spa_t *spa, uint64_t txg) argument
8637 spa_t *spa = NULL; local
8664 spa_t *spa; local
8693 spa_lookup_by_guid(spa_t *spa, uint64_t guid, boolean_t aux) argument
8719 spa_upgrade(spa_t *spa, uint64_t version) argument
8742 spa_has_spare(spa_t *spa, uint64_t guid) argument
8766 spa_has_active_shared_spare(spa_t *spa) argument
8783 spa_total_metaslabs(spa_t *spa) argument
8798 spa_event_create(spa_t *spa, vdev_t *vd, nvlist_t *hist_nvl, const char *name) argument
8878 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
1205 spa_t *spa = vd->vdev_spa; local
1258 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));
236 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
237 vdev_t *vd = vdev_lookup_top(spa, vdev_id);
239 objset_t *mos = spa->spa_dsl_pool->dp_meta_objset;
249 spa_feature_incr(spa, SPA_FEATURE_DEVICE_REMOVAL, tx);
250 if (spa_feature_is_enabled(spa, SPA_FEATURE_OBSOLETE_COUNT
365 spa_remove_init(spa_t *spa) argument
443 spa_restart_removal(spa_t *spa) argument
478 spa_t *spa = vd->vdev_spa; local
658 spa_finish_removal(spa_t *spa, dsl_scan_state_t state, dmu_tx_t *tx) argument
712 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
752 spa_t *spa = vcsa->vcsa_spa; local
908 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
1346 spa_t *spa = arg; local
1513 spa_vdev_remove_suspend(spa_t *spa) argument
1532 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
1547 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
1675 spa_vdev_remove_cancel(spa_t *spa) argument
1699 svr_sync(spa_t *spa, dmu_tx_t *tx) argument
1729 spa_t *spa = vd->vdev_spa; local
1754 spa_t *spa = vd->vdev_spa; local
1870 spa_t *spa = vd->vdev_spa; local
1975 spa_t *spa = vd->vdev_spa; local
2062 spa_vdev_remove(spa_t *spa, uint64_t guid, boolean_t unspare) argument
2159 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
539 vdev_alloc(spa_t *spa, vdev_t **vdp, nvlist_t *nv, vdev_t *parent, uint_t id, int alloctype) argument
815 spa_t *spa = vd->vdev_spa; local
947 spa_t *spa = svd->vdev_spa; local
1061 spa_t *spa = cvd->vdev_spa; local
1135 spa_t *spa = vd->vdev_spa; local
1184 spa_t *spa = vd->vdev_spa; local
1326 spa_t *spa = zio->io_spa; local
1388 spa_t *spa = vd->vdev_spa; local
1554 spa_t *spa = vd->vdev_spa; local
1794 spa_t *spa = vd->vdev_spa; local
2093 spa_t *spa = vd->vdev_spa; local
2126 spa_t *spa = vd->vdev_spa; local
2142 spa_t *spa = vd->vdev_spa; local
2161 spa_t *spa = vd->vdev_spa; local
2474 spa_t *spa = vd->vdev_spa; local
2512 spa_t *spa = vd->vdev_spa; local
2623 spa_t *spa = vd->vdev_spa; local
2656 spa_t *spa = vd->vdev_spa; local
2680 spa_t *spa = vd->vdev_spa; local
2690 spa_t *spa = vd->vdev_spa; local
2726 spa_t *spa = vd->vdev_spa; local
2805 spa_t *spa = vd->vdev_spa; local
2914 spa_t *spa = vd->vdev_spa; local
3106 spa_t *spa = vd->vdev_spa; local
3142 spa_t *spa = vd->vdev_spa; local
3208 vdev_fault(spa_t *spa, uint64_t guid, vdev_aux_t aux) argument
3264 vdev_degrade(spa_t *spa, uint64_t guid, vdev_aux_t aux) argument
3299 vdev_online(spa_t *spa, uint64_t guid, uint64_t flags, vdev_state_t *newstate) argument
3380 vdev_offline_locked(spa_t *spa, uint64_t guid, uint64_t flags) argument
3483 vdev_offline(spa_t *spa, uint64_t guid, uint64_t flags) argument
3500 vdev_clear(spa_t *spa, vdev_t *vd) argument
3662 spa_t *spa = vd->vdev_spa; local
3759 spa_t *spa = zio->io_spa; local
3925 spa_t *spa = vd->vdev_spa; local
3969 spa_t *spa = vd->vdev_spa; local
4043 spa_t *spa = vd->vdev_spa; local
4062 spa_t *spa = vd->vdev_spa; local
4085 spa_t *spa = vd->vdev_spa; local
4101 spa_t *spa = vd->vdev_spa; local
4167 spa_t *spa = vd->vdev_spa; local
4430 spa_t *spa = vd->vdev_spa; local
4455 vdev_set_deferred_resilver(spa_t *spa, vdev_t *vd) argument
[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 Dvdev_initialize.h29 #include <sys/spa.h>
40 extern void vdev_initialize_stop_wait(spa_t *spa, list_t *vd_list);
H A Dspa.h53 typedef struct spa spa_t;
810 extern void spa_async_request(spa_t *spa, int flag);
811 extern void spa_async_unrequest(spa_t *spa, int flag);
812 extern void spa_async_suspend(spa_t *spa);
813 extern void spa_async_resume(spa_t *spa);
815 extern void spa_inject_delref(spa_t *spa);
816 extern void spa_scan_stat_init(spa_t *spa);
817 extern int spa_scan_get_stats(spa_t *spa, pool_scan_stat_t *ps);
838 extern int spa_vdev_add(spa_t *spa, nvlist_t *nvroot);
839 extern int spa_vdev_attach(spa_t *spa, uint64_
[all...]
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 Dzfsimpl.c44 const spa_t *spa; member in struct:zfsmount
145 static int zio_read(const spa_t *spa, const blkptr_t *bp, void *buf);
146 static int zfs_get_root(const spa_t *spa, uint64_t *objid);
147 static int zfs_rlookup(const spa_t *spa, uint64_t objnum, char *result);
148 static int zap_lookup(const spa_t *spa, const dnode_phys_t *dnode,
494 return (zio_checksum_verify(vdev->spa, bp, buf));
523 vdev_indirect_mapping_open(spa_t *spa, objset_phys_t *os, argument
540 rc = objset_get_dnode(spa, os, mapping_object, vim->vim_dn);
547 vim->vim_spa = spa;
772 vdev_lookup_top(spa_t *spa, uint64_ argument
839 spa_t *spa = vd->spa; local
916 spa_t *spa = vdev->spa; local
1298 spa_t *spa; local
1310 spa_t *spa; local
1326 spa_get_primary_vdev(const spa_t *spa) argument
1347 spa_t *spa; local
1423 spa_status(spa_t *spa) argument
1484 spa_t *spa; local
1520 spa_t *spa; local
1766 zio_read_gang(const spa_t *spa, const blkptr_t *bp, void *buf) argument
1803 zio_read(const spa_t *spa, const blkptr_t *bp, void *buf) argument
1891 dnode_read(const spa_t *spa, const dnode_phys_t *dnode, off_t offset, void *buf, size_t buflen) argument
2132 fzap_lookup(const spa_t *spa, const dnode_phys_t *dnode, const char *name, uint64_t integer_size, uint64_t num_integers, void *value) argument
2217 zap_lookup(const spa_t *spa, const dnode_phys_t *dnode, const char *name, uint64_t integer_size, uint64_t num_integers, void *value) argument
2276 fzap_list(const spa_t *spa, const dnode_phys_t *dnode, int (*callback)(const char *, uint64_t)) argument
2360 zap_list(const spa_t *spa, const dnode_phys_t *dnode) argument
2376 objset_get_dnode(const spa_t *spa, const objset_phys_t *os, uint64_t objnum, dnode_phys_t *dnode) argument
2440 fzap_rlookup(const spa_t *spa, const dnode_phys_t *dnode, char *name, uint64_t value) argument
2488 zap_rlookup(const spa_t *spa, const dnode_phys_t *dnode, char *name, uint64_t value) argument
2506 zfs_rlookup(const spa_t *spa, uint64_t objnum, char *result) argument
2564 zfs_lookup_dataset(const spa_t *spa, const char *name, uint64_t *objnum) argument
2616 zfs_list_dataset(const spa_t *spa, uint64_t objnum ) argument
2646 zfs_callback_dataset(const spa_t *spa, uint64_t objnum, int (*callback)(const char *, uint64_t)) argument
2692 zfs_mount_dataset(const spa_t *spa, uint64_t objnum, objset_phys_t *objset) argument
2717 zfs_get_root(const spa_t *spa, uint64_t *objid) argument
2762 zfs_mount(const spa_t *spa, uint64_t rootobj, struct zfsmount *mnt) argument
2810 check_mos_features(const spa_t *spa) argument
2851 load_nvlist(spa_t *spa, uint64_t obj, unsigned char **value) argument
2885 zfs_spa_init(spa_t *spa) argument
2992 zfs_dnode_stat(const spa_t *spa, dnode_phys_t *dn, struct stat *sb) argument
3044 zfs_dnode_readlink(const spa_t *spa, dnode_phys_t *dn, char *path, size_t psize) argument
3106 const spa_t *spa; local
[all...]
H A Dzfs.c145 const spa_t *spa = ((struct zfsmount *)f->f_devdata)->spa; local
158 rc = dnode_read(spa, &fp->f_dnode, fp->f_seekp, start, n);
209 const spa_t *spa = ((struct zfsmount *)f->f_devdata)->spa; local
212 return (zfs_dnode_stat(spa, &fp->f_dnode, sb));
218 const spa_t *spa = ((struct zfsmount *)f->f_devdata)->spa; local
235 rc = dnode_read(spa, &fp->f_dnode,
243 rc = dnode_read(spa,
422 spa_t *spa; local
467 spa_t *spa; local
580 spa_t *spa; local
612 spa_t *spa; local
677 spa_t *spa; local
723 spa_t *spa; local
782 spa_t *spa; local
819 spa_t *spa; local
875 spa_t *spa; local
[all...]
/illumos-gate/usr/src/common/zfs/
H A Dzfs_fletcher.h34 #include <sys/spa.h>

Completed in 199 milliseconds

123456