Searched defs:spa (Results 1 - 25 of 63) sorted by relevance

123

/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dvdev_root.c32 #include <sys/spa.h>
88 spa_t *spa = vd->vdev_spa; local
108 if (spa_load_state(spa) != SPA_LOAD_NONE)
109 spa_set_missing_tvds(spa, numerrors);
H A Ddsl_synctask.c47 spa_t *spa; local
53 err = spa_open(pool, &spa, FTAG);
56 dp = spa_get_dsl(spa);
78 spa_close(spa, FTAG);
100 spa_close(spa, FTAG);
H A Dzio_compress.c33 #include <sys/spa.h>
67 zio_compress_select(spa_t *spa, enum zio_compress child, argument
81 if (spa_feature_is_active(spa, SPA_FEATURE_LZ4_COMPRESS))
H A Dbptree.c38 #include <sys/spa.h>
152 bptree_visit_cb(spa_t *spa, zilog_t *zilog, const blkptr_t *bp, argument
163 ba->ba_phys->bt_bytes -= bp_get_dsize_sync(spa, bp);
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 Ddmu_diff.c110 diff_cb(spa_t *spa, zilog_t *zilog, const blkptr_t *bp, argument
141 if (arc_read(NULL, spa, bp, arc_getbuf_func, &abuf,
H A Ddmu_zfetch.c214 spa_t *spa = zf->zf_dnode->dn_objset->os_spa; local
226 if (!spa_indirect_vdevs_loaded(spa))
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 Dbpobj.c41 spa_t *spa = dmu_objset_spa(os); local
44 if (spa_feature_is_enabled(spa, SPA_FEATURE_EMPTY_BPOBJ)) {
45 if (!spa_feature_is_active(spa, SPA_FEATURE_EMPTY_BPOBJ)) {
54 spa_feature_incr(spa, SPA_FEATURE_EMPTY_BPOBJ, tx);
533 spa_t *spa; member in struct:space_range_arg
548 if (dsl_pool_sync_context(spa_get_dsl(sra->spa)))
549 sra->used += bp_get_dsize_sync(sra->spa, bp);
551 sra->used += bp_get_dsize(sra->spa, bp);
597 sra.spa = dmu_objset_spa(bpo->bpo_os);
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 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 Dzio_checksum.c29 #include <sys/spa.h>
217 zio_checksum_dedup_select(spa_t *spa, enum zio_checksum child, argument
228 return (spa_dedup_checksum(spa));
231 return (spa_dedup_checksum(spa) | ZIO_CHECKSUM_VERIFY);
271 zio_checksum_template_init(enum zio_checksum checksum, spa_t *spa) argument
277 if (spa->spa_cksum_tmpls[checksum] != NULL)
281 mutex_enter(&spa->spa_cksum_tmpls_lock);
282 if (spa->spa_cksum_tmpls[checksum] == NULL) {
283 spa->spa_cksum_tmpls[checksum] =
284 ci->ci_tmpl_init(&spa
321 spa_t *spa = zio->io_spa; local
387 zio_checksum_error_impl(spa_t *spa, const blkptr_t *bp, enum zio_checksum checksum, abd_t *abd, uint64_t size, uint64_t offset, zio_bad_cksum_t *info) argument
519 spa_t *spa = zio->io_spa; local
539 zio_checksum_templates_free(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 Dvdev_initialize.c26 #include <sys/spa.h>
103 spa_t *spa = vd->vdev_spa; local
122 dmu_tx_t *tx = dmu_tx_create_dd(spa_get_dsl(spa)->dp_mos_dir);
124 dsl_sync_task_nowait(spa_get_dsl(spa), vdev_initialize_zap_update_sync,
129 spa_history_log_internal(spa, "initialize", tx,
133 spa_history_log_internal(spa, "initialize", tx,
137 spa_history_log_internal(spa, "initialize", tx,
141 spa_history_log_internal(spa, "initialize", tx,
188 spa_t *spa = vd->vdev_spa; local
199 dmu_tx_t *tx = dmu_tx_create_dd(spa_get_dsl(spa)
466 spa_t *spa = vd->vdev_spa; local
589 vdev_initialize_stop_wait(spa_t *spa, list_t *vd_list) argument
664 spa_t *spa = vd->vdev_spa; local
[all...]
H A Dzio_inject.c164 zio_handle_panic_injection(spa_t *spa, char *tag, uint64_t type) argument
173 if (spa != handler->zi_spa)
221 zio_handle_decrypt_injection(spa_t *spa, const zbookmark_phys_t *zb, argument
232 if (spa != handler->zi_spa ||
459 spa_handle_ignored_writes(spa_t *spa) argument
471 if (spa != handler->zi_spa ||
485 spa_syncing_txg(spa));
722 spa_t *spa; local
766 if ((spa = spa_inject_addref(name)) == NULL)
771 handler->zi_spa = spa;
[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
324 spa_t *spa = NULL; local
348 spa_config_set(spa_t *spa, nvlist_t *config) argument
364 spa_config_generate(spa_t *spa, vdev_t *vd, uint64_t txg, int getstats) argument
518 spa_config_update(spa_t *spa, int what) argument
[all...]
H A Ddsl_userhold.c213 spa_t *spa; local
216 error = spa_open(ca->zhca_spaname, &spa, FTAG);
223 if (spa_load_guid(spa) != ca->zhca_spa_load_guid) {
227 spa_close(spa, FTAG);
231 (void) dsl_dataset_user_release_tmp(spa_get_dsl(spa), ca->zhca_holds);
234 spa_close(spa, FTAG);
238 dsl_onexit_hold_cleanup(spa_t *spa, nvlist_t *holds, minor_t minor) argument
247 ASSERT(spa != NULL);
250 (void) strlcpy(ca->zhca_spaname, spa_name(spa),
252 ca->zhca_spa_load_guid = spa_load_guid(spa);
[all...]
H A Dtxg.c475 spa_t *spa = dp->dp_spa; local
539 spa_sync(spa, txg);
760 txg_verify(spa_t *spa, uint64_t txg) argument
762 dsl_pool_t *dp = spa_get_dsl(spa);
774 txg_list_create(txg_list_t *tl, spa_t *spa, size_t offset) argument
781 tl->tl_spa = spa;
H A Ddmu_tx.c37 #include <sys/spa.h>
875 spa_t *spa = tx->tx_pool->dp_spa; local
882 if (spa_suspended(spa)) {
892 if (spa_get_failmode(spa) == ZIO_FAILURE_MODE_CONTINUE &&
1038 spa_t *spa = tx->tx_pool->dp_spa; local
1067 } else if (spa_suspended(spa) || tx->tx_lasttried_txg == 0) {
1075 txg_wait_synced(dp, spa_last_synced_txg(spa) + 1);
1094 txg_wait_synced(dp, spa_last_synced_txg(spa) + 1);
H A Ddsl_destroy.c642 kill_blkptr(spa_t *spa, zilog_t *zilog, const blkptr_t *bp, argument
1012 spa_t *spa; local
1019 error = spa_open(name, &spa, FTAG);
1022 isenabled = spa_feature_is_enabled(spa, SPA_FEATURE_ASYNC_DESTROY);
1023 spa_close(spa, FTAG);
H A Ddmu_traverse.c33 #include <sys/spa.h>
518 traverse_prefetcher(spa_t *spa, zilog_t *zilog, const blkptr_t *bp, argument
545 (void) arc_read(NULL, spa, bp, NULL, NULL, ZIO_PRIORITY_ASYNC_READ,
578 traverse_impl(spa_t *spa, dsl_dataset_t *ds, uint64_t objset, blkptr_t *rootbp, argument
590 td.td_spa = spa;
602 if (spa_feature_is_active(spa, SPA_FEATURE_HOLE_BIRTH)) {
603 VERIFY(spa_feature_enabled_txg(spa,
680 traverse_dataset_destroyed(spa_t *spa, blkptr_t *blkptr, argument
684 return (traverse_impl(spa, NULL, ZB_DESTROYED_OBJSET,
692 traverse_pool(spa_t *spa, uint64_ argument
[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 Ddsl_pool.c186 dsl_pool_open_impl(spa_t *spa, uint64_t txg) argument
189 blkptr_t *bp = spa_get_rootblkptr(spa);
192 dp->dp_spa = spa;
196 mmp_init(spa);
198 txg_list_create(&dp->dp_dirty_datasets, spa,
200 txg_list_create(&dp->dp_dirty_zilogs, spa,
202 txg_list_create(&dp->dp_dirty_dirs, spa,
204 txg_list_create(&dp->dp_sync_tasks, spa,
206 txg_list_create(&dp->dp_early_sync_tasks, spa,
232 dsl_pool_init(spa_t *spa, uint64_ argument
445 dsl_pool_create(spa_t *spa, nvlist_t *zplprops, dsl_crypto_params_t *dcp, uint64_t txg) argument
579 spa_t *spa = dp->dp_spa; local
827 spa_t *spa = dp->dp_spa; local
1256 spa_t *spa; local
[all...]
/illumos-gate/usr/src/cmd/zhack/
H A Dzhack.c37 #include <sys/spa.h>
86 fatal(spa_t *spa, void *tag, const char *fmt, ...) argument
90 if (spa != NULL) {
91 spa_close(spa, tag);
162 zhack_spa_open(char *target, boolean_t readonly, void *tag, spa_t **spa) argument
169 err = spa_open(target, spa, tag);
173 fatal(*spa, FTAG, "cannot open '%s': %s", target,
175 if (spa_version(*spa) < SPA_VERSION_FEATURES) {
176 fatal(*spa, FTAG, "'%s' has version %d, features not enabled",
177 target, (int)spa_version(*spa));
208 dump_mos(spa_t *spa) argument
223 spa_t *spa; local
253 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
268 spa_t *spa; local
335 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
348 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
364 spa_t *spa; local
[all...]
/illumos-gate/usr/src/lib/libzpool/common/
H A Dutil.c35 #include <sys/spa.h>
133 show_pool_stats(spa_t *spa) argument
138 VERIFY(spa_get_stats(spa_name(spa), &config, NULL, 0) == 0);

Completed in 88 milliseconds

123