/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | dsl_synctask.c | 70 spa_t *spa; local 76 err = spa_open(pool, &spa, FTAG); 79 dp = spa_get_dsl(spa); 101 spa_close(spa, FTAG); 116 spa_close(spa, FTAG);
|
H A D | zio_compress.c | 36 #include <sys/spa.h> 65 zio_compress_select(spa_t *spa, enum zio_compress child, argument 79 if (spa_feature_is_active(spa, SPA_FEATURE_LZ4_COMPRESS))
|
H A D | spa_errlog.c | 52 #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, zio_t *zio) argument 105 if (spa_load_state(spa) == SPA_LOAD_TRYIMPORT) 108 mutex_enter(&spa->spa_errlist_lock); 114 if (spa->spa_scrub_active || spa->spa_scrub_finished) 115 tree = &spa->spa_errlist_scrub; 117 tree = &spa->spa_errlist_last; 121 mutex_exit(&spa 138 spa_get_errlog_size(spa_t *spa) argument 164 process_error_log(spa_t *spa, uint64_t obj, void *addr, size_t *count) argument 233 spa_get_errlog(spa_t *spa, void *uaddr, size_t *count) argument 267 spa_errlog_rotate(spa_t *spa) argument 279 spa_errlog_drain(spa_t *spa) argument 302 sync_error_list(spa_t *spa, avl_tree_t *t, uint64_t *obj, dmu_tx_t *tx) argument 343 spa_errlog_sync(spa_t *spa, uint64_t txg) argument [all...] |
H A D | bptree.c | 38 #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 D | dmu_diff.c | 109 diff_cb(spa_t *spa, zilog_t *zilog, const blkptr_t *bp, argument 136 if (arc_read(NULL, spa, bp, arc_getbuf_func, &abuf,
|
H A D | zio_checksum.c | 29 #include <sys/spa.h> 176 zio_checksum_dedup_select(spa_t *spa, enum zio_checksum child, argument 187 return (spa_dedup_checksum(spa)); 190 return (spa_dedup_checksum(spa) | ZIO_CHECKSUM_VERIFY); 230 zio_checksum_template_init(enum zio_checksum checksum, spa_t *spa) argument 236 if (spa->spa_cksum_tmpls[checksum] != NULL) 240 mutex_enter(&spa->spa_cksum_tmpls_lock); 241 if (spa->spa_cksum_tmpls[checksum] == NULL) { 242 spa->spa_cksum_tmpls[checksum] = 243 ci->ci_tmpl_init(&spa 260 spa_t *spa = zio->io_spa; local 296 zio_checksum_error_impl(spa_t *spa, blkptr_t *bp, enum zio_checksum checksum, void *data, uint64_t size, uint64_t offset, zio_bad_cksum_t *info) argument 387 spa_t *spa = zio->io_spa; local 407 zio_checksum_templates_free(spa_t *spa) argument [all...] |
H A D | txg.c | 449 spa_t *spa = dp->dp_spa; local 510 spa_sync(spa, txg);
|
H A D | zfeature.c | 174 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 375 feature_do_action(spa_t *spa, spa_feature_t fid, feature_action_t action, dmu_tx_t *tx) argument 410 spa_feature_create_zap_objects(spa_t *spa, dmu_tx_t *tx) argument 434 spa_feature_enable(spa_t *spa, spa_feature_t fid, dmu_tx_t *tx) argument 442 spa_feature_incr(spa_t *spa, spa_feature_t fid, dmu_tx_t *tx) argument 448 spa_feature_decr(spa_t *spa, spa_feature_t fid, dmu_tx_t *tx) argument 454 spa_feature_is_enabled(spa_t *spa, spa_feature_t fid) argument 469 spa_feature_is_active(spa_t *spa, spa_feature_t fid) argument 493 spa_feature_enabled_txg(spa_t *spa, spa_feature_t fid, uint64_t *txg) argument [all...] |
H A D | bpobj.c | 40 spa_t *spa = dmu_objset_spa(os); local 43 if (spa_feature_is_enabled(spa, SPA_FEATURE_EMPTY_BPOBJ)) { 44 if (!spa_feature_is_active(spa, SPA_FEATURE_EMPTY_BPOBJ)) { 53 spa_feature_incr(spa, SPA_FEATURE_EMPTY_BPOBJ, tx); 522 spa_t *spa; member in struct:space_range_arg 537 if (dsl_pool_sync_context(spa_get_dsl(sra->spa))) 538 sra->used += bp_get_dsize_sync(sra->spa, bp); 540 sra->used += bp_get_dsize(sra->spa, bp); 583 sra.spa = dmu_objset_spa(bpo->bpo_os);
|
H A D | zio_inject.c | 142 zio_handle_panic_injection(spa_t *spa, char *tag, uint64_t type) argument 151 if (spa != handler->zi_spa) 368 spa_handle_ignored_writes(spa_t *spa) argument 380 if (spa != handler->zi_spa || 394 spa_syncing_txg(spa)); 571 spa_t *spa; local 606 if ((spa = spa_inject_addref(name)) == NULL) 611 handler->zi_spa = spa;
|
H A D | spa_config.c | 28 #include <sys/spa.h> 57 * maintained independently in spa.c. Whenever the namespace is modified, or 224 spa_t *spa = NULL; local 232 while ((spa = spa_next(spa)) != NULL) { 235 * ourselves from the spa namespace or any pool that 240 if ((spa == target && removing) || 241 !spa_writeable(spa)) 244 mutex_enter(&spa->spa_props_lock); 245 tdp = list_head(&spa 314 spa_t *spa = NULL; local 338 spa_config_set(spa_t *spa, nvlist_t *config) argument 353 spa_config_generate(spa_t *spa, vdev_t *vd, uint64_t txg, int getstats) argument 496 spa_config_update(spa_t *spa, int what) argument [all...] |
H A D | spa_history.c | 28 #include <sys/spa.h> 86 spa_history_create_obj(spa_t *spa, dmu_tx_t *tx) argument 90 objset_t *mos = spa->spa_meta_objset; 92 ASSERT(spa->spa_history == 0); 93 spa->spa_history = dmu_object_alloc(mos, DMU_OT_SPA_HISTORY, 99 &spa->spa_history, tx) == 0); 101 VERIFY(0 == dmu_bonus_hold(mos, spa->spa_history, FTAG, &dbp)); 112 metaslab_class_get_dspace(spa_normal_class(spa)) / 1000; 123 spa_history_advance_bof(spa_t *spa, spa_history_phys_t *shpp) argument 125 objset_t *mos = spa 150 spa_history_write(spa_t *spa, void *buf, uint64_t len, spa_history_phys_t *shpp, dmu_tx_t *tx) argument 202 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local 289 spa_history_log(spa_t *spa, const char *msg) argument 301 spa_history_log_nvl(spa_t *spa, nvlist_t *nvl) argument 338 spa_history_get(spa_t *spa, uint64_t *offp, uint64_t *len, char *buf) argument 435 log_internal(nvlist_t *nvl, const char *operation, spa_t *spa, dmu_tx_t *tx, const char *fmt, va_list adx) argument 468 spa_history_log_internal(spa_t *spa, const char *operation, dmu_tx_t *tx, const char *fmt, ...) argument 484 log_internal(fnvlist_alloc(), operation, spa, htx, fmt, adx); local 532 spa_history_log_version(spa_t *spa, const char *operation) argument [all...] |
H A D | vdev_mirror.c | 31 #include <sys/spa.h> 82 spa_t *spa = zio->io_spa; local 107 mc->mc_vd = vdev_lookup_top(spa, DVA_GET_VDEV(&dva[c]));
|
H A D | space_map.c | 30 #include <sys/spa.h> 240 spa_t *spa = dmu_objset_spa(os); local 277 SM_DEBUG_SYNCPASS_ENCODE(spa_sync_pass(spa)) | 401 spa_t *spa = dmu_objset_spa(os); local 417 if ((spa_feature_is_enabled(spa, SPA_FEATURE_SPACEMAP_HISTOGRAM) && 420 zfs_dbgmsg("txg %llu, spa %s, reallocating: " 422 spa_name(spa), doi.doi_bonus_size, doi.doi_data_block_size); 464 spa_t *spa = dmu_objset_spa(os); local 468 if (spa_feature_is_enabled(spa, SPA_FEATURE_SPACEMAP_HISTOGRAM)) { 469 spa_feature_incr(spa, SPA_FEATURE_SPACEMAP_HISTOGRA 486 spa_t *spa; local [all...] |
H A D | vdev_label.c | 138 #include <sys/spa.h> 214 vdev_config_generate(spa_t *spa, vdev_t *vd, boolean_t getstats, argument 249 spa_version(spa) >= SPA_VERSION_RAIDZ2) || 251 spa_version(spa) >= SPA_VERSION_RAIDZ3)); 317 if (spa_scan_get_stats(spa, &ps) == 0) { 345 child[idx++] = vdev_config_generate(spa, cvd, 407 vdev_top_config_generate(spa_t *spa, nvlist_t *config) argument 409 vdev_t *rvd = spa->spa_root_vdev; 444 spa_t *spa = vd->vdev_spa; local 453 ASSERT(spa_config_held(spa, SCL_STATE_AL 518 spa_t *spa = vd->vdev_spa; local 636 spa_t *spa = vd->vdev_spa; local 898 spa_t *spa = zio->io_spa; local 954 spa_t *spa = rvd->vdev_spa; local 1034 spa_t *spa = svd[0]->vdev_spa; local 1141 vdev_label_sync_list(spa_t *spa, int l, uint64_t txg, int flags) argument 1196 spa_t *spa = svd[0]->vdev_spa; local [all...] |
H A D | dsl_userhold.c | 192 spa_t *spa; local 195 error = spa_open(ca->zhca_spaname, &spa, FTAG); 202 if (spa_load_guid(spa) != ca->zhca_spa_load_guid) { 206 spa_close(spa, FTAG); 210 (void) dsl_dataset_user_release_tmp(spa_get_dsl(spa), ca->zhca_holds); 213 spa_close(spa, FTAG); 217 dsl_onexit_hold_cleanup(spa_t *spa, nvlist_t *holds, minor_t minor) argument 226 ASSERT(spa != NULL); 229 (void) strlcpy(ca->zhca_spaname, spa_name(spa), 231 ca->zhca_spa_load_guid = spa_load_guid(spa); [all...] |
H A D | vdev_queue.c | 294 spa_t *spa = zio->io_spa; local 300 mutex_enter(&spa->spa_iokstat_lock); 301 spa->spa_queue_stats[zio->io_priority].spa_queued++; 302 if (spa->spa_iokstat != NULL) 303 kstat_waitq_enter(spa->spa_iokstat->ks_data); 304 mutex_exit(&spa->spa_iokstat_lock); 310 spa_t *spa = zio->io_spa; local 316 mutex_enter(&spa->spa_iokstat_lock); 317 ASSERT3U(spa->spa_queue_stats[zio->io_priority].spa_queued, >, 0); 318 spa 327 spa_t *spa = zio->io_spa; local 343 spa_t *spa = zio->io_spa; local 403 vdev_queue_max_async_writes(spa_t *spa) argument 442 vdev_queue_class_max_active(spa_t *spa, zio_priority_t p) argument 468 spa_t *spa = vq->vq_vdev->vdev_spa; local [all...] |
H A D | vdev_disk.c | 258 spa_t *spa = vd->vdev_spa; local 341 error = ldi_open_by_name(buf, spa_mode(spa), kcred, 357 error = ldi_open_by_name(vd->vdev_path, spa_mode(spa), 368 (void) ldi_close(dvd->vd_lh, spa_mode(spa), 389 spa_mode(spa), kcred, &dvd->vd_lh, zfs_li); 404 error = ldi_open_by_dev(&dev, OTYP_BLK, spa_mode(spa), 413 error = ldi_open_by_name(vd->vdev_path, spa_mode(spa), 426 if (validate_devid && spa_writeable(spa) &&
|
H A D | zfs_fm.c | 30 #include <sys/spa.h> 107 const char *subclass, spa_t *spa, vdev_t *vd, zio_t *zio, 119 if (spa_load_state(spa) == SPA_LOAD_TRYIMPORT || 120 spa_load_state(spa) == SPA_LOAD_RECOVER) 128 if (spa_load_state(spa) != SPA_LOAD_NONE && 129 spa->spa_last_open_failed) 202 mutex_enter(&spa->spa_errlist_lock); 209 if (spa_load_state(spa) != SPA_LOAD_NONE) { 210 if (spa->spa_ena == 0) 211 spa 106 zfs_ereport_start(nvlist_t **ereport_out, nvlist_t **detector_out, const char *subclass, spa_t *spa, vdev_t *vd, zio_t *zio, uint64_t stateoroffset, uint64_t size) argument 669 zfs_ereport_post(const char *subclass, spa_t *spa, vdev_t *vd, zio_t *zio, uint64_t stateoroffset, uint64_t size) argument 690 zfs_ereport_start_checksum(spa_t *spa, vdev_t *vd, struct zio *zio, uint64_t offset, uint64_t length, void *arg, zio_bad_cksum_t *info) argument 780 zfs_ereport_post_checksum(spa_t *spa, vdev_t *vd, struct zio *zio, uint64_t offset, uint64_t length, const void *good_data, const void *bad_data, zio_bad_cksum_t *zbc) argument 810 zfs_post_common(spa_t *spa, vdev_t *vd, const char *name) argument 845 zfs_post_remove(spa_t *spa, vdev_t *vd) argument 856 zfs_post_autoreplace(spa_t *spa, vdev_t *vd) argument 868 zfs_post_state_change(spa_t *spa, vdev_t *vd) argument [all...] |
H A D | dsl_prop.c | 36 #include <sys/spa.h> 1109 spa_t *spa; local 1112 VERIFY0(spa_open(dsname, &spa, FTAG)); 1113 version = spa_version(spa); 1114 spa_close(spa, FTAG);
|
H A D | dmu_traverse.c | 33 #include <sys/spa.h> 493 traverse_prefetcher(spa_t *spa, zilog_t *zilog, const blkptr_t *bp, argument 515 (void) arc_read(NULL, spa, bp, NULL, NULL, ZIO_PRIORITY_ASYNC_READ, 548 traverse_impl(spa_t *spa, dsl_dataset_t *ds, uint64_t objset, blkptr_t *rootbp, argument 560 td.td_spa = spa; 572 if (spa_feature_is_active(spa, SPA_FEATURE_HOLE_BIRTH)) { 573 VERIFY(spa_feature_enabled_txg(spa, 645 traverse_dataset_destroyed(spa_t *spa, blkptr_t *blkptr, argument 649 return (traverse_impl(spa, NULL, ZB_DESTROYED_OBJSET, 657 traverse_pool(spa_t *spa, uint64_ argument [all...] |
/illumos-gate/usr/src/boot/sys/boot/efi/boot1/ |
H A D | zfs_module.c | 69 spa_t *spa; local 82 if (vdev_probe(vdev_read, tdev, &spa) != 0) { 87 dev->devdata = spa; 96 spa_t *spa; local 104 spa = devinfo->devdata; 106 DPRINTF("load: '%s' spa: '%s', devpath: %s\n", filepath, spa->spa_name, 109 if ((err = zfs_spa_init(spa)) != 0) { 110 DPRINTF("Failed to load pool '%s' (%d)\n", spa->spa_name, err); 114 if ((err = zfs_mount(spa, 159 spa_t *spa; local [all...] |
/illumos-gate/usr/src/cmd/zhack/ |
H A D | zhack.c | 37 #include <sys/spa.h> 87 fatal(spa_t *spa, void *tag, const char *fmt, ...) argument 91 if (spa != NULL) { 92 spa_close(spa, tag); 130 spa_t *spa; local 148 if (readonly && spa_open(target, &spa, FTAG) == 0) { 149 spa_close(spa, FTAG); 165 spa_open(target, &spa, FTAG) == 0) { 166 fatal(spa, FTAG, "cannot import '%s': pool is " 199 zhack_spa_open(const char *target, boolean_t readonly, void *tag, spa_t **spa) argument 245 dump_mos(spa_t *spa) argument 260 spa_t *spa; local 290 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local 305 spa_t *spa; local 372 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local 385 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local 401 spa_t *spa; local [all...] |
/illumos-gate/usr/src/lib/libzpool/common/ |
H A D | util.c | 32 #include <sys/spa.h> 140 show_pool_stats(spa_t *spa) argument 145 VERIFY(spa_get_stats(spa_name(spa), &config, NULL, 0) == 0);
|
/illumos-gate/usr/src/uts/sun4u/starfire/io/ |
H A D | idn_smr.c | 1803 register smr_slab_t *spa; local 1817 spa = &(idn.slabpool->pool[p].sarray[0]); 1820 if (lock_try(&spa[s].sl_lock)) { 1835 ASSERT((&spa[s] >= idn.slabpool->savep) && 1836 (&spa[s] < (idn.slabpool->savep + 1839 spa[s].sl_domid = (short)domid; 1849 * buffers. The "spa" is just a representative 1858 nsp->sl_start = spa[s].sl_start; 1859 nsp->sl_end = spa[s].sl_end; 1861 spa 1887 register smr_slab_t *spa; local [all...] |