Home
last modified time | relevance | path

Searched refs:spa_t (Results 1 – 25 of 60) sorted by relevance

123

/titanic_41/usr/src/uts/common/fs/zfs/sys/
H A Dspa.h46 typedef struct spa spa_t; typedef
599 extern int spa_open(const char *pool, spa_t **, void *tag);
600 extern int spa_open_rewind(const char *pool, spa_t **, void *tag,
614 extern void spa_async_request(spa_t *spa, int flag);
615 extern void spa_async_unrequest(spa_t *spa, int flag);
616 extern void spa_async_suspend(spa_t *spa);
617 extern void spa_async_resume(spa_t *spa);
618 extern spa_t *spa_inject_addref(char *pool);
619 extern void spa_inject_delref(spa_t *spa);
620 extern void spa_scan_stat_init(spa_t *spa);
[all …]
H A Dddt.h128 spa_t *ddt_spa;
202 extern void ddt_get_dedup_object_stats(spa_t *spa, ddt_object_t *ddo);
203 extern void ddt_get_dedup_histogram(spa_t *spa, ddt_histogram_t *ddh);
204 extern void ddt_get_dedup_stats(spa_t *spa, ddt_stat_t *dds_total);
206 extern uint64_t ddt_get_dedup_dspace(spa_t *spa);
207 extern uint64_t ddt_get_pool_dedup_ratio(spa_t *spa);
216 extern ddt_t *ddt_select(spa_t *spa, const blkptr_t *bp);
220 extern void ddt_prefetch(spa_t *spa, const blkptr_t *bp);
223 extern boolean_t ddt_class_contains(spa_t *spa, enum ddt_class max_class,
231 extern void ddt_create(spa_t *spa);
[all …]
H A Dzio.h399 spa_t *io_spa;
462 extern zio_t *zio_null(zio_t *pio, spa_t *spa, vdev_t *vd,
465 extern zio_t *zio_root(spa_t *spa,
468 extern zio_t *zio_read(zio_t *pio, spa_t *spa, const blkptr_t *bp, void *data,
472 extern zio_t *zio_write(zio_t *pio, spa_t *spa, uint64_t txg, blkptr_t *bp,
478 extern zio_t *zio_rewrite(zio_t *pio, spa_t *spa, uint64_t txg, blkptr_t *bp,
485 extern void zio_free(spa_t *spa, uint64_t txg, const blkptr_t *bp);
487 extern zio_t *zio_claim(zio_t *pio, spa_t *spa, uint64_t txg,
491 extern zio_t *zio_ioctl(zio_t *pio, spa_t *spa, vdev_t *vd, int cmd,
504 extern zio_t *zio_free_sync(zio_t *pio, spa_t *spa, uint64_t txg,
[all …]
H A Darc.h119 arc_buf_t *arc_buf_alloc(spa_t *spa, int size, void *tag,
121 arc_buf_t *arc_loan_buf(spa_t *spa, int size);
136 int arc_read(zio_t *pio, spa_t *spa, const blkptr_t *bp,
139 zio_t *arc_write(zio_t *pio, spa_t *spa, uint64_t txg,
144 void arc_freed(spa_t *spa, const blkptr_t *bp);
149 void arc_flush(spa_t *spa, boolean_t retry);
160 void l2arc_add_vdev(spa_t *spa, vdev_t *vd, boolean_t rebuild);
167 void l2arc_spa_rebuild_start(spa_t *spa);
H A Dvdev.h61 extern vdev_t *vdev_lookup_top(spa_t *spa, uint64_t vdev);
63 extern int vdev_count_leaves(spa_t *spa);
99 extern int vdev_fault(spa_t *spa, uint64_t guid, vdev_aux_t aux);
100 extern int vdev_degrade(spa_t *spa, uint64_t guid, vdev_aux_t aux);
101 extern int vdev_online(spa_t *spa, uint64_t guid, uint64_t flags,
103 extern int vdev_offline(spa_t *spa, uint64_t guid, uint64_t flags);
104 extern void vdev_clear(spa_t *spa, vdev_t *vd);
137 extern void vdev_top_config_generate(spa_t *spa, nvlist_t *config);
138 extern nvlist_t *vdev_config_generate(spa_t *spa, vdev_t *vd,
H A Dmetaslab.h64 int metaslab_alloc(spa_t *, metaslab_class_t *, uint64_t,
66 void metaslab_free(spa_t *, const blkptr_t *, uint64_t, boolean_t);
67 int metaslab_claim(spa_t *, const blkptr_t *, uint64_t);
68 void metaslab_check_free(spa_t *, const blkptr_t *);
70 metaslab_class_t *metaslab_class_create(spa_t *, metaslab_ops_t *);
H A Dzfeature.h52 extern boolean_t spa_feature_enabled_txg(spa_t *spa, spa_feature_t fid,
54 extern uint64_t spa_feature_refcount(spa_t *, spa_feature_t, uint64_t);
55 extern boolean_t spa_features_check(spa_t *, boolean_t, nvlist_t *, nvlist_t *);
62 extern int feature_get_refcount_from_disk(spa_t *spa, zfeature_info_t *feature,
H A Ddmu_traverse.h42 typedef int (blkptr_cb_t)(spa_t *spa, zilog_t *zilog, const blkptr_t *bp,
59 int traverse_dataset_destroyed(spa_t *spa, blkptr_t *blkptr,
62 int traverse_pool(spa_t *spa,
H A Ddsl_pool.h82 spa_t *dp_spa;
135 int dsl_pool_init(spa_t *spa, uint64_t txg, dsl_pool_t **dpp);
138 dsl_pool_t *dsl_pool_create(spa_t *spa, nvlist_t *zplprops, uint64_t txg);
H A Ddmu_objset.h74 spa_t *os_spa;
166 objset_t *dmu_objset_create_impl(spa_t *spa, struct dsl_dataset *ds,
168 int dmu_objset_open_impl(spa_t *spa, struct dsl_dataset *ds, blkptr_t *bp,
H A Dvdev_impl.h141 spa_t *vdev_spa; /* spa for this vdev */
291 extern vdev_t *vdev_alloc_common(spa_t *spa, uint_t id, uint64_t guid,
293 extern int vdev_alloc(spa_t *spa, vdev_t **vdp, nvlist_t *config,
/titanic_41/usr/src/uts/common/fs/zfs/
H A Dspa_misc.c352 spa_config_lock_init(spa_t *spa) in spa_config_lock_init()
365 spa_config_lock_destroy(spa_t *spa) in spa_config_lock_destroy()
378 spa_config_tryenter(spa_t *spa, int locks, void *tag, krw_t rw) in spa_config_tryenter()
407 spa_config_enter(spa_t *spa, int locks, void *tag, krw_t rw) in spa_config_enter()
440 spa_config_exit(spa_t *spa, int locks, void *tag) in spa_config_exit()
459 spa_config_held(spa_t *spa, int locks, krw_t rw) in spa_config_held()
485 spa_t *
488 static spa_t search; /* spa_t is large; don't allocate on stack */ in spa_lookup()
489 spa_t *spa; in spa_lookup()
518 spa_t *spa = arg; in spa_deadman()
[all …]
H A Dzfeature.c174 spa_features_check(spa_t *spa, boolean_t for_write, in spa_features_check()
226 feature_get_refcount(spa_t *spa, zfeature_info_t *feature, uint64_t *res) in feature_get_refcount()
243 feature_get_refcount_from_disk(spa_t *spa, zfeature_info_t *feature, in feature_get_refcount_from_disk()
272 feature_get_enabled_txg(spa_t *spa, zfeature_info_t *feature, uint64_t *res) { in feature_get_enabled_txg()
295 feature_sync(spa_t *spa, zfeature_info_t *feature, uint64_t refcount, in feature_sync()
330 feature_enable_sync(spa_t *spa, zfeature_info_t *feature, dmu_tx_t *tx) in feature_enable_sync()
374 feature_do_action(spa_t *spa, spa_feature_t fid, feature_action_t action, in feature_do_action()
409 spa_feature_create_zap_objects(spa_t *spa, dmu_tx_t *tx) in spa_feature_create_zap_objects()
433 spa_feature_enable(spa_t *spa, spa_feature_t fid, dmu_tx_t *tx) in spa_feature_enable()
441 spa_feature_incr(spa_t *spa, spa_feature_t fid, dmu_tx_t *tx) in spa_feature_incr()
[all …]
H A Dspa_errlog.c93 spa_log_error(spa_t *spa, zio_t *zio) in spa_log_error()
138 spa_get_errlog_size(spa_t *spa) in spa_get_errlog_size()
164 process_error_log(spa_t *spa, uint64_t obj, void *addr, size_t *count) in process_error_log()
233 spa_get_errlog(spa_t *spa, void *uaddr, size_t *count) in spa_get_errlog()
267 spa_errlog_rotate(spa_t *spa) in spa_errlog_rotate()
279 spa_errlog_drain(spa_t *spa) in spa_errlog_drain()
302 sync_error_list(spa_t *spa, avl_tree_t *t, uint64_t *obj, dmu_tx_t *tx) in sync_error_list()
343 spa_errlog_sync(spa_t *spa, uint64_t txg) in spa_errlog_sync()
H A Dspa_history.c85 spa_history_create_obj(spa_t *spa, dmu_tx_t *tx) in spa_history_create_obj()
122 spa_history_advance_bof(spa_t *spa, spa_history_phys_t *shpp) in spa_history_advance_bof()
149 spa_history_write(spa_t *spa, void *buf, uint64_t len, spa_history_phys_t *shpp, in spa_history_write()
201 spa_t *spa = dmu_tx_pool(tx)->dp_spa; in spa_history_log_sync()
288 spa_history_log(spa_t *spa, const char *msg) in spa_history_log()
300 spa_history_log_nvl(spa_t *spa, nvlist_t *nvl) in spa_history_log_nvl()
337 spa_history_get(spa_t *spa, uint64_t *offp, uint64_t *len, char *buf) in spa_history_get()
434 log_internal(nvlist_t *nvl, const char *operation, spa_t *spa, in log_internal()
467 spa_history_log_internal(spa_t *spa, const char *operation, in spa_history_log_internal()
531 spa_history_log_version(spa_t *spa, const char *operation) in spa_history_log_version()
H A Dspa.c142 static boolean_t spa_has_active_shared_spare(spa_t *spa);
143 static int spa_load_impl(spa_t *spa, uint64_t, nvlist_t *config,
146 static void spa_vdev_resilver_done(spa_t *spa);
194 spa_prop_get_config(spa_t *spa, nvlist_t **nvp) in spa_prop_get_config()
296 spa_prop_get(spa_t *spa, nvlist_t **nvp) in spa_prop_get()
402 spa_prop_validate(spa_t *spa, nvlist_t *props) in spa_prop_validate()
625 spa_configfile_set(spa_t *spa, nvlist_t *nvp, boolean_t need_sync) in spa_configfile_set()
650 spa_prop_set(spa_t *spa, nvlist_t *nvp) in spa_prop_set()
712 spa_prop_clear_bootfs(spa_t *spa, uint64_t dsobj, dmu_tx_t *tx) in spa_prop_clear_bootfs()
727 spa_t *spa = dmu_tx_pool(tx)->dp_spa; in spa_change_guid_check()
[all …]
H A Dddt.c59 spa_t *spa = ddt->ddt_spa; in ddt_object_create()
83 spa_t *spa = ddt->ddt_spa; in ddt_object_destroy()
353 spa_t *spa = ddt->ddt_spa; in ddt_stat_generate()
443 ddt_get_dedup_object_stats(spa_t *spa, ddt_object_t *ddo_total) in ddt_get_dedup_object_stats()
468 ddt_get_dedup_histogram(spa_t *spa, ddt_histogram_t *ddh) in ddt_get_dedup_histogram()
483 ddt_get_dedup_stats(spa_t *spa, ddt_stat_t *dds_total) in ddt_get_dedup_stats()
494 ddt_get_dedup_dspace(spa_t *spa) in ddt_get_dedup_dspace()
503 ddt_get_pool_dedup_ratio(spa_t *spa) in ddt_get_pool_dedup_ratio()
517 spa_t *spa = ddt->ddt_spa; in ddt_ditto_copies_needed()
609 ddt_select_by_checksum(spa_t *spa, enum zio_checksum c) in ddt_select_by_checksum()
[all …]
H A Dvdev.c151 vdev_lookup_top(spa_t *spa, uint64_t vdev) in vdev_lookup_top()
196 vdev_count_leaves(spa_t *spa) in vdev_count_leaves()
207 spa_t *spa = cvd->vdev_spa; in vdev_add_child()
310 vdev_alloc_common(spa_t *spa, uint_t id, uint64_t guid, vdev_ops_t *ops) in vdev_alloc_common()
370 vdev_alloc(spa_t *spa, vdev_t **vdp, nvlist_t *nv, vdev_t *parent, uint_t id, in vdev_alloc()
595 spa_t *spa = vd->vdev_spa; in vdev_free()
681 spa_t *spa = svd->vdev_spa; in vdev_top_transfer()
759 spa_t *spa = cvd->vdev_spa; in vdev_add_parent()
832 spa_t *spa = vd->vdev_spa; in vdev_metaslab_init()
933 spa_t *spa = zio->io_spa; in vdev_probe_done()
[all …]
H A Dspa_config.c209 spa_config_sync(spa_t *target, boolean_t removing, boolean_t postsysevent) in spa_config_sync()
229 spa_t *spa = NULL; in spa_config_sync()
320 spa_t *spa = NULL; in spa_all_configs()
344 spa_config_set(spa_t *spa, nvlist_t *config) in spa_config_set()
360 spa_config_generate(spa_t *spa, vdev_t *vd, uint64_t txg, int getstats) in spa_config_generate()
502 spa_config_update(spa_t *spa, int what) in spa_config_update()
H A Dvdev_queue.c275 spa_t *spa = zio->io_spa; in vdev_queue_io_add()
290 spa_t *spa = zio->io_spa; in vdev_queue_io_remove()
306 spa_t *spa = zio->io_spa; in vdev_queue_pending_add()
322 spa_t *spa = zio->io_spa; in vdev_queue_pending_remove()
381 vdev_queue_max_async_writes(spa_t *spa) in vdev_queue_max_async_writes()
420 vdev_queue_class_max_active(spa_t *spa, zio_priority_t p) in vdev_queue_class_max_active()
446 spa_t *spa = vq->vq_vdev->vdev_spa; in vdev_queue_class_to_issue()
H A Dzfs_fm.c107 const char *subclass, spa_t *spa, vdev_t *vd, zio_t *zio, in zfs_ereport_start()
669 zfs_ereport_post(const char *subclass, spa_t *spa, vdev_t *vd, zio_t *zio, in zfs_ereport_post()
690 zfs_ereport_start_checksum(spa_t *spa, vdev_t *vd, in zfs_ereport_start_checksum()
780 zfs_ereport_post_checksum(spa_t *spa, vdev_t *vd, in zfs_ereport_post_checksum()
810 zfs_post_common(spa_t *spa, vdev_t *vd, const char *name) in zfs_post_common()
845 zfs_post_remove(spa_t *spa, vdev_t *vd) in zfs_post_remove()
856 zfs_post_autoreplace(spa_t *spa, vdev_t *vd) in zfs_post_autoreplace()
868 zfs_post_state_change(spa_t *spa, vdev_t *vd) in zfs_post_state_change()
H A Dvdev_label.c215 vdev_config_generate(spa_t *spa, vdev_t *vd, boolean_t getstats, in vdev_config_generate()
399 vdev_top_config_generate(spa_t *spa, nvlist_t *config) in vdev_top_config_generate()
436 spa_t *spa = vd->vdev_spa; in vdev_label_read_config()
510 spa_t *spa = vd->vdev_spa; in vdev_inuse()
627 spa_t *spa = vd->vdev_spa; in vdev_label_init()
889 spa_t *spa = zio->io_spa; in vdev_uberblock_load_done()
945 spa_t *spa = rvd->vdev_spa; in vdev_uberblock_load()
1025 spa_t *spa = svd[0]->vdev_spa; in vdev_uberblock_sync_list()
1132 vdev_label_sync_list(spa_t *spa, int l, uint64_t txg, int flags) in vdev_label_sync_list()
1187 spa_t *spa = svd[0]->vdev_spa; in vdev_config_sync()
H A Dzio_inject.c54 spa_t *zi_spa;
104 zio_handle_panic_injection(spa_t *spa, char *tag, uint64_t type) in zio_handle_panic_injection()
330 spa_handle_ignored_writes(spa_t *spa) in spa_handle_ignored_writes()
401 spa_t *spa; in zio_inject_fault()
H A Dzio.c498 zio_create(zio_t *pio, spa_t *spa, uint64_t txg, const blkptr_t *bp, in zio_create()
589 zio_null(zio_t *pio, spa_t *spa, vdev_t *vd, zio_done_func_t *done, in zio_null()
602 zio_root(spa_t *spa, zio_done_func_t *done, void *private, enum zio_flag flags) in zio_root()
608 zfs_blkptr_verify(spa_t *spa, const blkptr_t *bp) in zfs_blkptr_verify()
690 zio_read(zio_t *pio, spa_t *spa, const blkptr_t *bp, in zio_read()
708 zio_write(zio_t *pio, spa_t *spa, uint64_t txg, blkptr_t *bp, in zio_write()
748 zio_rewrite(zio_t *pio, spa_t *spa, uint64_t txg, blkptr_t *bp, void *data, in zio_rewrite()
781 zio_free(spa_t *spa, uint64_t txg, const blkptr_t *bp) in zio_free()
809 zio_free_sync(zio_t *pio, spa_t *spa, uint64_t txg, const blkptr_t *bp, in zio_free_sync()
841 zio_claim(zio_t *pio, spa_t *spa, uint64_t txg, const blkptr_t *bp, in zio_claim()
[all …]
/titanic_41/usr/src/cmd/zhack/
H A Dzhack.c87 fatal(spa_t *spa, void *tag, const char *fmt, ...) in fatal()
130 spa_t *spa; in import_pool()
199 zhack_spa_open(const char *target, boolean_t readonly, void *tag, spa_t **spa) in zhack_spa_open()
245 dump_mos(spa_t *spa) in dump_mos()
260 spa_t *spa; in zhack_do_feature_stat()
290 spa_t *spa = dmu_tx_pool(tx)->dp_spa; in zhack_feature_enable_sync()
305 spa_t *spa; in zhack_do_feature_enable()
372 spa_t *spa = dmu_tx_pool(tx)->dp_spa; in feature_incr_sync()
385 spa_t *spa = dmu_tx_pool(tx)->dp_spa; in feature_decr_sync()
401 spa_t *spa; in zhack_do_feature_ref()

123