Searched refs:spa (Results 1 - 25 of 131) 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/sys/
H A Dmmp.h22 #include <sys/spa.h>
52 extern void mmp_init(struct spa *spa);
53 extern void mmp_fini(struct spa *spa);
54 extern void mmp_thread_start(struct spa *spa);
55 extern void mmp_thread_stop(struct spa *spa);
56 extern void mmp_update_uberblock(struct spa *sp
[all...]
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 Dspa.h52 typedef struct spa spa_t;
780 extern void spa_async_request(spa_t *spa, int flag);
781 extern void spa_async_unrequest(spa_t *spa, int flag);
782 extern void spa_async_suspend(spa_t *spa);
783 extern void spa_async_resume(spa_t *spa);
785 extern void spa_inject_delref(spa_t *spa);
786 extern void spa_scan_stat_init(spa_t *spa);
787 extern int spa_scan_get_stats(spa_t *spa, pool_scan_stat_t *ps);
806 extern int spa_vdev_add(spa_t *spa, nvlist_t *nvroot);
807 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/uts/common/fs/zfs/
H A Dspa_misc.c82 * spa_refcount (per-spa zfs_refcount_t protected by mutex)
90 * spa_config_lock[] (per-spa array of rwlocks)
95 * - RW_READER to perform I/O to the spa
163 * The spa config locks cannot be normal rwlocks because we need the
244 * Everything except dprintf, spa, and indirect_remap is on by default
363 spa_load_failed(spa_t *spa, const char *fmt, ...) argument
372 zfs_dbgmsg("spa_load(%s, config %s): FAILED: %s", spa->spa_name,
373 spa->spa_trust_config ? "trusted" : "untrusted", buf);
378 spa_load_note(spa_t *spa, const char *fmt, ...) argument
387 zfs_dbgmsg("spa_load(%s, config %s): %s", spa
410 spa_config_lock_init(spa_t *spa) argument
423 spa_config_lock_destroy(spa_t *spa) argument
436 spa_config_tryenter(spa_t *spa, int locks, void *tag, krw_t rw) argument
467 spa_config_enter(spa_t *spa, int locks, void *tag, krw_t rw) argument
500 spa_config_exit(spa_t *spa, int locks, void *tag) argument
519 spa_config_held(spa_t *spa, int locks, krw_t rw) argument
550 spa_t *spa; local
579 spa_t *spa = arg; local
604 spa_t *spa; local
747 spa_remove(spa_t *spa) argument
854 spa_open_ref(spa_t *spa, void *tag) argument
866 spa_close(spa_t *spa, void *tag) argument
882 spa_async_close(spa_t *spa, void *tag) argument
893 spa_refcount_zero(spa_t *spa) argument
1138 spa_vdev_enter(spa_t *spa) argument
1151 spa_vdev_config_enter(spa_t *spa) argument
1165 spa_vdev_config_exit(spa_t *spa, vdev_t *vd, uint64_t txg, int error, char *tag) argument
1238 spa_vdev_exit(spa_t *spa, vdev_t *vd, uint64_t txg, int error) argument
1251 spa_vdev_state_enter(spa_t *spa, int oplocks) argument
1278 spa_vdev_state_exit(spa_t *spa, vdev_t *vd, int error) argument
1326 spa_activate_mos_feature(spa_t *spa, const char *feature, dmu_tx_t *tx) argument
1343 spa_deactivate_mos_feature(spa_t *spa, const char *feature) argument
1357 spa_t *spa; local
1434 spa_generate_guid(spa_t *spa) argument
1480 spa_freeze(spa_t *spa) argument
1536 spa_activate_allocation_classes(spa_t *spa, dmu_tx_t *tx) argument
1552 spa_shutting_down(spa_t *spa) argument
1558 spa_get_dsl(spa_t *spa) argument
1564 spa_is_initializing(spa_t *spa) argument
1570 spa_indirect_vdevs_loaded(spa_t *spa) argument
1576 spa_get_rootblkptr(spa_t *spa) argument
1582 spa_set_rootblkptr(spa_t *spa, const blkptr_t *bp) argument
1588 spa_altroot(spa_t *spa, char *buf, size_t buflen) argument
1597 spa_sync_pass(spa_t *spa) argument
1603 spa_name(spa_t *spa) argument
1609 spa_guid(spa_t *spa) argument
1637 spa_load_guid(spa_t *spa) argument
1648 spa_last_synced_txg(spa_t *spa) argument
1654 spa_first_txg(spa_t *spa) argument
1660 spa_syncing_txg(spa_t *spa) argument
1670 spa_final_dirty_txg(spa_t *spa) argument
1676 spa_state(spa_t *spa) argument
1682 spa_load_state(spa_t *spa) argument
1688 spa_freeze_txg(spa_t *spa) argument
1695 spa_get_worst_case_asize(spa_t *spa, uint64_t lsize) argument
1708 spa_get_slop_space(spa_t *spa) argument
1715 spa_get_dspace(spa_t *spa) argument
1721 spa_get_checkpoint_space(spa_t *spa) argument
1727 spa_update_dspace(spa_t *spa) argument
1759 spa_get_failmode(spa_t *spa) argument
1765 spa_suspended(spa_t *spa) argument
1771 spa_version(spa_t *spa) argument
1777 spa_deflate(spa_t *spa) argument
1783 spa_normal_class(spa_t *spa) argument
1789 spa_log_class(spa_t *spa) argument
1795 spa_special_class(spa_t *spa) argument
1801 spa_dedup_class(spa_t *spa) argument
1810 spa_preferred_class(spa_t *spa, uint64_t size, dmu_object_type_t objtype, uint_t level, uint_t special_smallblk) argument
1868 spa_evicting_os_register(spa_t *spa, objset_t *os) argument
1876 spa_evicting_os_deregister(spa_t *spa, objset_t *os) argument
1885 spa_evicting_os_wait(spa_t *spa) argument
1896 spa_max_replication(spa_t *spa) argument
1909 spa_prev_software_version(spa_t *spa) argument
1915 spa_deadman_synctime(spa_t *spa) argument
1921 dva_get_dsize_sync(spa_t *spa, const dva_t *dva) argument
1937 bp_get_dsize_sync(spa_t *spa, const blkptr_t *bp) argument
1948 bp_get_dsize(spa_t *spa, const blkptr_t *bp) argument
1963 spa_dirty_data(spa_t *spa) argument
2082 spa_has_slogs(spa_t *spa) argument
2088 spa_get_log_state(spa_t *spa) argument
2094 spa_set_log_state(spa_t *spa, spa_log_state_t state) argument
2100 spa_is_root(spa_t *spa) argument
2106 spa_writeable(spa_t *spa) argument
2116 spa_has_pending_synctask(spa_t *spa) argument
2123 spa_mode(spa_t *spa) argument
2129 spa_bootfs(spa_t *spa) argument
2135 spa_delegation(spa_t *spa) argument
2141 spa_meta_objset(spa_t *spa) argument
2147 spa_dedup_checksum(spa_t *spa) argument
2156 spa_scan_stat_init(spa_t *spa) argument
2174 spa_scan_get_stats(spa_t *spa, pool_scan_stat_t *ps) argument
2207 spa_maxblocksize(spa_t *spa) argument
2216 spa_maxdnodesize(spa_t *spa) argument
2225 spa_multihost(spa_t *spa) argument
2253 spa_get_last_removal_txg(spa_t *spa) argument
2291 spa_trust_config(spa_t *spa) argument
2297 spa_missing_tvds_allowed(spa_t *spa) argument
2303 spa_set_missing_tvds(spa_t *spa, uint64_t missing) argument
2309 spa_top_vdevs_spacemap_addressable(spa_t *spa) argument
2320 spa_has_checkpoint(spa_t *spa) argument
2326 spa_importing_readonly_checkpoint(spa_t *spa) argument
2333 spa_min_claim_txg(spa_t *spa) argument
2350 spa_suspend_async_destroy(spa_t *spa) 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 Dspa.c156 static boolean_t spa_has_active_shared_spare(spa_t *spa);
157 static int spa_load_impl(spa_t *spa, spa_import_type_t type, char **ereport);
158 static void spa_vdev_resilver_done(spa_t *spa);
263 * Get property values from the spa configuration.
266 spa_prop_get_config(spa_t *spa, nvlist_t **nvp) argument
268 vdev_t *rvd = spa->spa_root_vdev;
269 dsl_pool_t *pool = spa->spa_dsl_pool;
273 metaslab_class_t *mc = spa_normal_class(spa);
275 ASSERT(MUTEX_HELD(&spa->spa_props_lock));
279 alloc += metaslab_class_get_alloc(spa_special_class(spa));
384 spa_prop_get(spa_t *spa, nvlist_t **nvp) argument
491 spa_prop_validate(spa_t *spa, nvlist_t *props) argument
717 spa_configfile_set(spa_t *spa, nvlist_t *nvp, boolean_t need_sync) argument
742 spa_prop_set(spa_t *spa, nvlist_t *nvp) argument
804 spa_prop_clear_bootfs(spa_t *spa, uint64_t dsobj, dmu_tx_t *tx) argument
819 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
845 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
871 spa_change_guid(spa_t *spa) argument
918 spa_get_errlists(spa_t *spa, avl_tree_t *last, avl_tree_t *scrub) argument
934 spa_taskqs_init(spa_t *spa, zio_type_t t, zio_taskq_type_t q) argument
1011 spa_taskqs_fini(spa_t *spa, zio_type_t t, zio_taskq_type_t q) argument
1036 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
1055 spa_create_zio_taskqs(spa_t *spa) argument
1070 spa_t *spa = arg; local
1138 spa_activate(spa_t *spa, int mode) argument
1219 spa_deactivate(spa_t *spa) argument
1309 spa_config_parse(spa_t *spa, vdev_t **vdp, nvlist_t *nv, vdev_t *parent, uint_t id, int atype) argument
1353 spa_unload(spa_t *spa) argument
1496 spa_load_spares(spa_t *spa) argument
1625 spa_load_l2cache(spa_t *spa) argument
1761 load_nvlist(spa_t *spa, uint64_t obj, nvlist_t **value) argument
1791 spa_healthy_core_tvds(spa_t *spa) argument
1825 spa_check_for_missing_logs(spa_t *spa) argument
1896 spa_check_logs(spa_t *spa) argument
1915 spa_passivate_log(spa_t *spa) argument
1939 spa_activate_log(spa_t *spa) argument
1955 spa_reset_logs(spa_t *spa) argument
1982 spa_t *spa = zio->io_spa; local
2005 spa_t *spa = zio->io_spa; local
2032 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
2074 spa_load_verify(spa_t *spa) argument
2158 spa_prop_find(spa_t *spa, zpool_prop_t prop, uint64_t *val) argument
2168 spa_dir_prop(spa_t *spa, const char *name, uint64_t *val, boolean_t log_enoent) argument
2189 spa_spawn_aux_threads(spa_t *spa) argument
2220 spa_try_repair(spa_t *spa, nvlist_t *config) argument
2286 spa_load(spa_t *spa, spa_load_state_t state, spa_import_type_t type) argument
2325 spa_t *spa = vd->vdev_spa; local
2349 spa_activity_check_required(spa_t *spa, uberblock_t *ub, nvlist_t *label, nvlist_t *config) argument
2415 spa_activity_check(spa_t *spa, uberblock_t *ub, nvlist_t *config) argument
2545 spa_verify_host(spa_t *spa, nvlist_t *mos_config) argument
2575 spa_ld_parse_config(spa_t *spa, spa_import_type_t type) argument
2687 spa_ld_open_vdevs(spa_t *spa) argument
2751 spa_ld_validate_vdevs(spa_t *spa) argument
2776 spa_ld_select_uberblock_done(spa_t *spa, uberblock_t *ub) argument
2789 spa_ld_select_uberblock(spa_t *spa, spa_import_type_t type) argument
2955 spa_ld_open_rootbp(spa_t *spa) argument
2972 spa_ld_trusted_config(spa_t *spa, spa_import_type_t type, boolean_t reloading) argument
3137 spa_ld_open_indirect_vdev_metadata(spa_t *spa) argument
3167 spa_ld_check_features(spa_t *spa, boolean_t *missing_feat_writep) argument
3292 spa_ld_load_special_directories(spa_t *spa) argument
3309 spa_ld_get_props(spa_t *spa) argument
3453 spa_ld_open_aux_vdevs(spa_t *spa, spa_import_type_t type) argument
3512 spa_ld_load_vdev_metadata(spa_t *spa) argument
3569 spa_ld_load_dedup_tables(spa_t *spa) argument
3584 spa_ld_verify_logs(spa_t *spa, spa_import_type_t type, char **ereport) argument
3607 spa_ld_verify_pool_data(spa_t *spa) argument
3630 spa_ld_claim_log_blocks(spa_t *spa) argument
3655 spa_ld_check_for_config_update(spa_t *spa, uint64_t config_cache_txg, boolean_t update_config_cache) argument
3687 spa_ld_prepare_for_reload(spa_t *spa) argument
3705 spa_ld_read_checkpoint_txg(spa_t *spa) argument
3733 spa_ld_mos_init(spa_t *spa, spa_import_type_t type) argument
3806 spa_ld_checkpoint_rewind(spa_t *spa) argument
3898 spa_ld_mos_with_trusted_config(spa_t *spa, spa_import_type_t type, boolean_t *update_config_cache) argument
3949 spa_load_impl(spa_t *spa, spa_import_type_t type, char **ereport) argument
4192 spa_load_retry(spa_t *spa, spa_load_state_t state) argument
4218 spa_load_best(spa_t *spa, spa_load_state_t state, uint64_t max_request, int rewind_flags) argument
4329 spa_t *spa; local
4457 spa_t *spa; local
4471 spa_inject_delref(spa_t *spa) argument
4482 spa_add_spares(spa_t *spa, nvlist_t *config) argument
4531 spa_add_l2cache(spa_t *spa, nvlist_t *config) argument
4583 spa_add_feature_stats(spa_t *spa, nvlist_t *config) argument
4628 spa_t *spa; local
4702 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
4771 spa_validate_aux(spa_t *spa, nvlist_t *nvroot, uint64_t crtxg, int mode) argument
4838 spa_l2cache_drop(spa_t *spa) argument
4879 spa_t *spa; local
5264 spa_t *spa; local
5382 spa_t *spa; local
5568 spa_t *spa; local
5685 spa_t *spa; local
5837 spa_vdev_add(spa_t *spa, nvlist_t *nvroot) argument
5982 spa_vdev_attach(spa_t *spa, uint64_t guid, nvlist_t *nvroot, int replacing) argument
6201 spa_vdev_detach(spa_t *spa, uint64_t guid, uint64_t pguid, int replace_done) argument
6456 spa_vdev_initialize(spa_t *spa, uint64_t guid, uint64_t cmd_type) argument
6539 spa_vdev_split_mirror(spa_t *spa, char *newname, nvlist_t *config, nvlist_t *props, boolean_t exp) argument
6939 spa_vdev_resilver_done(spa_t *spa) argument
6980 spa_vdev_set_common(spa_t *spa, uint64_t guid, const char *value, boolean_t ispath) argument
7017 spa_vdev_setpath(spa_t *spa, uint64_t guid, const char *newpath) argument
7023 spa_vdev_setfru(spa_t *spa, uint64_t guid, const char *newfru) argument
7034 spa_scrub_pause_resume(spa_t *spa, pool_scrub_cmd_t cmd) argument
7045 spa_scan_stop(spa_t *spa) argument
7054 spa_scan(spa_t *spa, pool_scan_func_t func) argument
7085 spa_async_remove(spa_t *spa, vdev_t *vd) argument
7110 spa_async_probe(spa_t *spa, vdev_t *vd) argument
7122 spa_async_autoexpand(spa_t *spa, vdev_t *vd) argument
7155 spa_t *spa = (spa_t *)arg; local
7256 spa_async_suspend(spa_t *spa) argument
7276 spa_async_resume(spa_t *spa) argument
7294 spa_async_tasks_pending(spa_t *spa) argument
7314 spa_async_dispatch(spa_t *spa) argument
7327 spa_async_request(spa_t *spa, int task) argument
7364 spa_sync_frees(spa_t *spa, bplist_t *bpl, dmu_tx_t *tx) argument
7376 spa_sync_deferred_frees(spa_t *spa, dmu_tx_t *tx) argument
7389 spa_sync_nvlist(spa_t *spa, uint64_t obj, nvlist_t *nv, dmu_tx_t *tx) argument
7421 spa_sync_aux_dev(spa_t *spa, spa_aux_vdev_t *sav, dmu_tx_t *tx, const char *config, const char *entry) argument
7473 spa_t *spa = vd->vdev_spa; local
7488 spa_sync_config_object(spa_t *spa, dmu_tx_t *tx) argument
7603 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
7625 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
7774 spa_sync_upgrades(spa_t *spa, dmu_tx_t *tx) argument
7879 spa_sync_adjust_vdev_max_queue_depth(spa_t *spa) argument
7933 spa_sync_condense_indirect(spa_t *spa, dmu_tx_t *tx) argument
7950 spa_sync_iterate_to_convergence(spa_t *spa, dmu_tx_t *tx) argument
8028 spa_sync_rewrite_vdev_config(spa_t *spa, dmu_tx_t *tx) argument
8088 spa_sync(spa_t *spa, uint64_t txg) argument
8272 spa_t *spa = NULL; local
8299 spa_t *spa; local
8328 spa_lookup_by_guid(spa_t *spa, uint64_t guid, boolean_t aux) argument
8354 spa_upgrade(spa_t *spa, uint64_t version) argument
8377 spa_has_spare(spa_t *spa, uint64_t guid) argument
8401 spa_has_active_shared_spare(spa_t *spa) argument
8418 spa_event_create(spa_t *spa, vdev_t *vd, nvlist_t *hist_nvl, const char *name) argument
8498 spa_event_notify(spa_t *spa, vdev_t *vd, nvlist_t *hist_nvl, const char *name) 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 Dmmp.c28 #include <sys/spa.h>
132 mmp_init(spa_t *spa) argument
134 mmp_thread_t *mmp = &spa->spa_mmp;
143 mmp_fini(spa_t *spa) argument
145 mmp_thread_t *mmp = &spa->spa_mmp;
170 mmp_thread_start(spa_t *spa) argument
172 mmp_thread_t *mmp = &spa->spa_mmp;
174 if (spa_writeable(spa)) {
178 spa->spa_name);
180 spa,
187 mmp_thread_stop(spa_t *spa) argument
221 mmp_next_leaf(spa_t *spa) argument
284 mmp_delay_update(spa_t *spa, boolean_t write_completed) argument
318 spa_t *spa = zio->io_spa; local
343 mmp_update_uberblock(spa_t *spa, uberblock_t *ub) argument
360 mmp_write_uberblock(spa_t *spa) argument
451 spa_t *spa = (spa_t *)arg; local
561 mmp_signal_thread(spa_t *spa) argument
574 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.c57 * into a hole vdev while holding spa config locks.
137 spa_sync_removing_state(spa_t *spa, dmu_tx_t *tx) argument
139 VERIFY0(zap_update(spa->spa_dsl_pool->dp_meta_objset,
142 sizeof (spa->spa_removing_phys) / sizeof (uint64_t),
143 &spa->spa_removing_phys, tx));
235 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
236 vdev_t *vd = vdev_lookup_top(spa, vdev_id);
238 objset_t *mos = spa->spa_dsl_pool->dp_meta_objset;
248 spa_feature_incr(spa, SPA_FEATURE_DEVICE_REMOVAL, tx);
249 if (spa_feature_is_enabled(spa, SPA_FEATURE_OBSOLETE_COUNT
364 spa_remove_init(spa_t *spa) argument
442 spa_restart_removal(spa_t *spa) argument
477 spa_t *spa = vd->vdev_spa; local
657 spa_finish_removal(spa_t *spa, dsl_scan_state_t state, dmu_tx_t *tx) argument
711 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
751 spa_t *spa = vcsa->vcsa_spa; local
907 spa_t *spa = vd->vdev_spa; local
1041 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
1093 spa_t *spa = vd->vdev_spa; local
1134 vdev_remove_complete(spa_t *spa) argument
1210 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
1342 spa_t *spa = arg; local
1505 spa_vdev_remove_suspend(spa_t *spa) argument
1524 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
1539 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
1662 spa_vdev_remove_cancel(spa_t *spa) argument
1686 svr_sync(spa_t *spa, dmu_tx_t *tx) argument
1716 spa_t *spa = vd->vdev_spa; local
1746 spa_t *spa = vd->vdev_spa; local
1839 spa_t *spa = vd->vdev_spa; local
1944 spa_t *spa = vd->vdev_spa; local
2027 spa_vdev_remove(spa_t *spa, uint64_t guid, boolean_t unspare) argument
2124 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.c301 spa_t *spa = zio->io_spa; local
307 mutex_enter(&spa->spa_iokstat_lock);
308 spa->spa_queue_stats[zio->io_priority].spa_queued++;
309 if (spa->spa_iokstat != NULL)
310 kstat_waitq_enter(spa->spa_iokstat->ks_data);
311 mutex_exit(&spa->spa_iokstat_lock);
317 spa_t *spa = zio->io_spa; local
323 mutex_enter(&spa->spa_iokstat_lock);
324 ASSERT3U(spa->spa_queue_stats[zio->io_priority].spa_queued, >, 0);
325 spa
334 spa_t *spa = zio->io_spa; local
350 spa_t *spa = zio->io_spa; local
413 vdev_queue_max_async_writes(spa_t *spa) argument
452 vdev_queue_class_max_active(spa_t *spa, zio_priority_t p) argument
481 spa_t *spa = vq->vq_vdev->vdev_spa; local
853 spa_t *spa = zio->io_spa; local
[all...]
H A Dvdev.c34 #include <sys/spa.h>
287 vdev_lookup_top(spa_t *spa, uint64_t vdev) argument
289 vdev_t *rvd = spa->spa_root_vdev;
291 ASSERT(spa_config_held(spa, SCL_ALL, RW_READER) != 0);
332 vdev_count_leaves(spa_t *spa) argument
334 return (vdev_count_leaves_impl(spa->spa_root_vdev));
343 spa_t *spa = cvd->vdev_spa; local
345 ASSERT(spa_config_held(spa, SCL_ALL, RW_WRITER) == SCL_ALL);
411 spa_t *spa = cvd->vdev_spa; local
412 list_remove(&spa
457 vdev_alloc_common(spa_t *spa, uint_t id, uint64_t guid, vdev_ops_t *ops) argument
530 vdev_alloc(spa_t *spa, vdev_t **vdp, nvlist_t *nv, vdev_t *parent, uint_t id, int alloctype) argument
806 spa_t *spa = vd->vdev_spa; local
929 spa_t *spa = svd->vdev_spa; local
1043 spa_t *spa = cvd->vdev_spa; local
1117 spa_t *spa = vd->vdev_spa; local
1166 spa_t *spa = vd->vdev_spa; local
1301 spa_t *spa = zio->io_spa; local
1363 spa_t *spa = vd->vdev_spa; local
1529 spa_t *spa = vd->vdev_spa; local
1763 spa_t *spa = vd->vdev_spa; local
2062 spa_t *spa = vd->vdev_spa; local
2095 spa_t *spa = vd->vdev_spa; local
2111 spa_t *spa = vd->vdev_spa; local
2130 spa_t *spa = vd->vdev_spa; local
2443 spa_t *spa = vd->vdev_spa; local
2481 spa_t *spa = vd->vdev_spa; local
2592 spa_t *spa = vd->vdev_spa; local
2625 spa_t *spa = vd->vdev_spa; local
2649 spa_t *spa = vd->vdev_spa; local
2659 spa_t *spa = vd->vdev_spa; local
2695 spa_t *spa = vd->vdev_spa; local
2774 spa_t *spa = vd->vdev_spa; local
2883 spa_t *spa = vd->vdev_spa; local
3055 spa_t *spa = vd->vdev_spa; local
3091 spa_t *spa = vd->vdev_spa; local
3157 vdev_fault(spa_t *spa, uint64_t guid, vdev_aux_t aux) argument
3213 vdev_degrade(spa_t *spa, uint64_t guid, vdev_aux_t aux) argument
3248 vdev_online(spa_t *spa, uint64_t guid, uint64_t flags, vdev_state_t *newstate) argument
3319 vdev_offline_locked(spa_t *spa, uint64_t guid, uint64_t flags) argument
3422 vdev_offline(spa_t *spa, uint64_t guid, uint64_t flags) argument
3439 vdev_clear(spa_t *spa, vdev_t *vd) argument
3601 spa_t *spa = vd->vdev_spa; local
3686 spa_t *spa = zio->io_spa; local
3841 spa_t *spa = vd->vdev_spa; local
3885 spa_t *spa = vd->vdev_spa; local
3959 spa_t *spa = vd->vdev_spa; local
3978 spa_t *spa = vd->vdev_spa; local
4001 spa_t *spa = vd->vdev_spa; local
4017 spa_t *spa = vd->vdev_spa; local
4083 spa_t *spa = vd->vdev_spa; local
4343 spa_t *spa = vd->vdev_spa; local
4368 vdev_set_deferred_resilver(spa_t *spa, vdev_t *vd) argument
[all...]
H A Dvdev_indirect.c21 #include <sys/spa.h>
123 * - When syncing the spa: process dp_obsolete_bpobj, moving ranges to
325 spa_t *spa = vd->vdev_spa; local
333 if (spa_feature_is_enabled(spa, SPA_FEATURE_OBSOLETE_COUNTS)) {
337 vdev_dirty(vd, 0, NULL, spa_syncing_txg(spa));
347 spa_vdev_indirect_mark_obsolete(spa_t *spa, uint64_t vdev_id, uint64_t offset, argument
350 vdev_t *vd = vdev_lookup_top(spa, vdev_id);
359 spa_condensing_indirect_create(spa_t *spa) argument
362 &spa->spa_condensing_indirect_phys;
364 objset_t *mos = spa
394 spa_t *spa = vd->vdev_spa; local
481 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
544 spa_t *spa = dmu_tx_pool(tx)->dp_spa; local
559 spa_condense_indirect_commit_entry(spa_t *spa, vdev_indirect_mapping_entry_phys_t *vimep, uint32_t count) argument
594 spa_t *spa = vd->vdev_spa; local
639 spa_t *spa = arg; local
648 spa_t *spa = arg; local
754 spa_t *spa = vd->vdev_spa; local
810 spa_t *spa = vd->vdev_spa; local
845 spa_condense_init(spa_t *spa) argument
866 spa_condense_fini(spa_t *spa) argument
875 spa_start_indirect_condensing_thread(spa_t *spa) argument
1040 spa_t *spa = vd->vdev_spa; local
1279 spa_t *spa = zio->io_spa; local
[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
385 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
512 spa_t *spa = zio->io_spa; local
532 zio_checksum_templates_free(spa_t *spa) argument
[all...]
H A Dzfs_fm.c30 #include <sys/spa.h>
107 const char *subclass, spa_t *spa, vdev_t *vd, const zbookmark_phys_t *zb,
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, const zbookmark_phys_t *zb, zio_t *zio, uint64_t stateoroffset, uint64_t size) argument
674 zfs_ereport_post(const char *subclass, spa_t *spa, vdev_t *vd, const struct zbookmark_phys *zb, zio_t *zio, uint64_t stateoroffset, uint64_t size) argument
696 zfs_ereport_start_checksum(spa_t *spa, vdev_t *vd, const zbookmark_phys_t *zb, struct zio *zio, uint64_t offset, uint64_t length, void *arg, zio_bad_cksum_t *info) argument
786 zfs_ereport_post_checksum(spa_t *spa, vdev_t *vd, const zbookmark_phys_t *zb, struct zio *zio, uint64_t offset, uint64_t length, const abd_t *good_data, const abd_t *bad_data, zio_bad_cksum_t *zbc) argument
816 zfs_post_common(spa_t *spa, vdev_t *vd, const char *name) argument
851 zfs_post_remove(spa_t *spa, vdev_t *vd) argument
862 zfs_post_autoreplace(spa_t *spa, vdev_t *vd) argument
874 zfs_post_state_change(spa_t *spa, vdev_t *vd) argument
[all...]
/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
2386 mzap_rlookup(const spa_t *spa, const dnode_phys_t *dnode, char *name, uint64_t value) argument
2439 fzap_rlookup(const spa_t *spa, const dnode_phys_t *dnode, char *name, uint64_t value) argument
2487 zap_rlookup(const spa_t *spa, const dnode_phys_t *dnode, char *name, uint64_t value) argument
2505 zfs_rlookup(const spa_t *spa, uint64_t objnum, char *result) argument
2563 zfs_lookup_dataset(const spa_t *spa, const char *name, uint64_t *objnum) argument
2615 zfs_list_dataset(const spa_t *spa, uint64_t objnum ) argument
2645 zfs_callback_dataset(const spa_t *spa, uint64_t objnum, int (*callback)(const char *, uint64_t)) argument
2691 zfs_mount_dataset(const spa_t *spa, uint64_t objnum, objset_phys_t *objset) argument
2716 zfs_get_root(const spa_t *spa, uint64_t *objid) argument
2761 zfs_mount(const spa_t *spa, uint64_t rootobj, struct zfsmount *mnt) argument
2809 check_mos_features(const spa_t *spa) argument
2850 load_nvlist(spa_t *spa, uint64_t obj, unsigned char **value) argument
2884 zfs_spa_init(spa_t *spa) argument
2991 zfs_dnode_stat(const spa_t *spa, dnode_phys_t *dn, struct stat *sb) argument
3043 zfs_dnode_readlink(const spa_t *spa, dnode_phys_t *dn, char *path, size_t psize) argument
3105 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,
421 spa_t *spa; local
466 spa_t *spa; local
579 spa_t *spa; local
611 spa_t *spa; local
675 spa_t *spa; local
721 spa_t *spa; local
780 spa_t *spa; local
817 spa_t *spa; local
873 spa_t *spa; local
[all...]
/illumos-gate/usr/src/common/zfs/
H A Dzfs_fletcher.h34 #include <sys/spa.h>

Completed in 256 milliseconds

123456