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

123

/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dvdev_root.c31 #include <sys/spa.h>
87 spa_t *spa = vd->vdev_spa; local
107 if (spa_load_state(spa) != SPA_LOAD_NONE)
108 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_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 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_inject.c144 zio_handle_panic_injection(spa_t *spa, char *tag, uint64_t type) argument
153 if (spa != handler->zi_spa)
201 zio_handle_decrypt_injection(spa_t *spa, const zbookmark_phys_t *zb, argument
212 if (spa != handler->zi_spa ||
433 spa_handle_ignored_writes(spa_t *spa) argument
445 if (spa != handler->zi_spa ||
459 spa_syncing_txg(spa));
636 spa_t *spa; local
671 if ((spa = spa_inject_addref(name)) == NULL)
676 handler->zi_spa = spa;
[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 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 Dvdev_mirror.c31 #include <sys/spa.h>
252 spa_t *spa = zio->io_spa; local
256 if (spa->spa_dsl_pool != NULL) {
257 scn = spa->spa_dsl_pool->dp_scan;
278 dsl_scan_scrubbing(spa->spa_dsl_pool)) {
288 if (!spa_trust_config(spa)) {
292 if (zfs_dva_valid(spa, &dva[i], zio->io_bp))
310 mc->mc_vd = vdev_lookup_top(spa, DVA_GET_VDEV(&dva[c]));
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 Ddsl_prop.c36 #include <sys/spa.h>
1114 spa_t *spa; local
1117 VERIFY0(spa_open(dsname, &spa, FTAG));
1118 version = spa_version(spa);
1119 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...]
/illumos-gate/usr/src/lib/libzpool/common/
H A Dutil.c34 #include <sys/spa.h>
127 show_pool_stats(spa_t *spa) argument
132 VERIFY(spa_get_stats(spa_name(spa), &config, NULL, 0) == 0);
/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...]

Completed in 191 milliseconds

123