/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | vdev.h | 54 typedef boolean_t vdev_open_children_func_t(vdev_t *vd); 56 extern void vdev_dbgmsg(vdev_t *vd, const char *fmt, ...) 58 extern void vdev_dbgmsg_print_tree(vdev_t *, int); 59 extern int vdev_open(vdev_t *); 60 extern void vdev_open_children(vdev_t *); 61 extern void vdev_open_children_subset(vdev_t *, vdev_open_children_func_t *); 62 extern int vdev_validate(vdev_t *); 63 extern int vdev_copy_path_strict(vdev_t *, vdev_t *); 64 extern void vdev_copy_path_relaxed(vdev_t *, vdev_t *); 65 extern void vdev_close(vdev_t *); [all …]
|
H A D | vdev_impl.h | 67 typedef void vdev_kobj_post_evt_func_t(vdev_t *vd); 68 typedef void vdev_fini_func_t(vdev_t *vd); 69 typedef int vdev_open_func_t(vdev_t *vd, uint64_t *size, uint64_t *max_size, 71 typedef void vdev_close_func_t(vdev_t *vd); 72 typedef uint64_t vdev_asize_func_t(vdev_t *vd, uint64_t psize, uint64_t txg); 73 typedef uint64_t vdev_min_asize_func_t(vdev_t *vd); 74 typedef uint64_t vdev_min_alloc_func_t(vdev_t *vd); 77 typedef void vdev_state_change_func_t(vdev_t *vd, int, int); 78 typedef boolean_t vdev_need_resilver_func_t(vdev_t *vd, const dva_t *dva, 80 typedef void vdev_hold_func_t(vdev_t *vd); [all …]
|
H A D | vdev_draid.h | 96 extern boolean_t vdev_draid_readable(vdev_t *, uint64_t); 97 extern boolean_t vdev_draid_missing(vdev_t *, uint64_t, uint64_t, uint64_t); 98 extern uint64_t vdev_draid_asize_to_psize(vdev_t *, uint64_t, uint64_t); 101 extern nvlist_t *vdev_draid_read_config_spare(vdev_t *); 104 extern vdev_t *vdev_draid_spare_get_child(vdev_t *, uint64_t); 105 extern vdev_t *vdev_draid_spare_get_parent(vdev_t *); 106 extern int vdev_draid_spare_create(nvlist_t *, vdev_t *, uint64_t *, uint64_t);
|
H A D | vdev_trim.h | 38 extern void vdev_trim(vdev_t *vd, uint64_t rate, boolean_t partial, 40 extern void vdev_trim_stop(vdev_t *vd, vdev_trim_state_t tgt, list_t *vd_list); 41 extern void vdev_trim_stop_all(vdev_t *vd, vdev_trim_state_t tgt_state); 43 extern void vdev_trim_restart(vdev_t *vd); 47 extern void vdev_autotrim_stop_wait(vdev_t *vd); 49 extern int vdev_trim_simple(vdev_t *vd, uint64_t start, uint64_t size);
|
H A D | vdev_rebuild.h | 67 vdev_t *vr_top_vdev; /* top-level vdev to rebuild */ 90 boolean_t vdev_rebuild_active(vdev_t *); 92 int vdev_rebuild_load(vdev_t *); 93 void vdev_rebuild(vdev_t *); 94 void vdev_rebuild_stop_wait(vdev_t *); 98 int vdev_rebuild_get_stats(vdev_t *, vdev_rebuild_stat_t *);
|
H A D | vdev_initialize.h | 36 extern void vdev_initialize(vdev_t *vd); 37 extern void vdev_uninitialize(vdev_t *vd); 38 extern void vdev_initialize_stop(vdev_t *vd, 40 extern void vdev_initialize_stop_all(vdev_t *vd, 43 extern void vdev_initialize_restart(vdev_t *vd);
|
H A D | vdev_raidz.h | 63 void raidz_dtl_reassessed(vdev_t *); 64 boolean_t vdev_sit_out_reads(vdev_t *, zio_flag_t); 65 void vdev_raidz_sit_child(vdev_t *, uint64_t); 66 void vdev_raidz_unsit_child(vdev_t *); 163 extern int vdev_raidz_attach_check(vdev_t *); 167 extern int vdev_raidz_load(vdev_t *);
|
H A D | metaslab.h | 91 void metaslab_free_concrete(vdev_t *, uint64_t, uint64_t, boolean_t); 93 void metaslab_free_impl_cb(uint64_t, vdev_t *, uint64_t, uint64_t, void *); 96 int metaslab_claim_impl(vdev_t *, uint64_t, uint64_t, uint64_t); 124 void metaslab_space_update(vdev_t *, metaslab_class_t *, 127 metaslab_group_t *metaslab_group_create(metaslab_class_t *, vdev_t *); 147 zfs_range_seg_type_t metaslab_calculate_range_tree_type(vdev_t *vdev,
|
H A D | spa.h | 59 typedef struct vdev vdev_t; typedef 838 extern void spa_spare_add(vdev_t *vd); 839 extern void spa_spare_remove(vdev_t *vd); 841 extern void spa_spare_activate(vdev_t *vd); 844 extern void spa_l2cache_add(vdev_t *vd); 845 extern void spa_l2cache_remove(vdev_t *vd); 847 extern void spa_l2cache_activate(vdev_t *vd); 885 extern nvlist_t *spa_config_generate(spa_t *spa, vdev_t *vd, uint64_t txg, 888 extern int spa_config_parse(spa_t *spa, vdev_t **vdp, nvlist_t *nv, 889 vdev_t *parent, uint_t id, int atype); [all …]
|
H A D | zio.h | 513 vdev_t *io_vd; 577 extern zio_t *zio_null(zio_t *pio, spa_t *spa, vdev_t *vd, 608 extern zio_t *zio_trim(zio_t *pio, vdev_t *vd, uint64_t offset, uint64_t size, 612 extern zio_t *zio_read_phys(zio_t *pio, vdev_t *vd, uint64_t offset, 617 extern zio_t *zio_write_phys(zio_t *pio, vdev_t *vd, uint64_t offset, 628 extern void zio_flush(zio_t *zio, vdev_t *vd); 657 extern zio_t *zio_vdev_child_io(zio_t *zio, blkptr_t *bp, vdev_t *vd, 662 extern zio_t *zio_vdev_delegated_io(vdev_t *vd, uint64_t offset, 713 extern int zio_handle_device_injection(vdev_t *vd, zio_t *zio, int error); 714 extern int zio_handle_device_injections(vdev_t *vd, zio_t *zio, int err1, [all …]
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | vdev.c | 174 vdev_dbgmsg(vdev_t *vd, const char *fmt, ...) in vdev_dbgmsg() 195 vdev_dbgmsg_print_tree(vdev_t *vd, int indent) in vdev_dbgmsg_print_tree() 247 vdev_rt_name(vdev_t *vd, const char *name) in vdev_rt_name() 256 vdev_rt_name_dtl(vdev_t *vd, const char *name, vdev_dtl_type_t dtl_type) in vdev_rt_name_dtl() 309 vdev_get_mg(vdev_t *vd, metaslab_class_t *mc) in vdev_get_mg() 320 vdev_default_xlate(vdev_t *vd, const zfs_range_seg64_t *logical_rs, in vdev_default_xlate() 349 vdev_default_psize(vdev_t *vd, uint64_t asize, uint64_t txg) in vdev_default_psize() 366 vdev_default_asize(vdev_t *vd, uint64_t psize, uint64_t txg) in vdev_default_asize() 380 vdev_default_min_asize(vdev_t *vd) in vdev_default_min_asize() 392 vdev_get_min_asize(vdev_t *vd) in vdev_get_min_asize() [all …]
|
H A D | vdev_draid.c | 582 vdev_draid_psize_to_asize(vdev_t *vd, uint64_t psize, uint64_t txg) in vdev_draid_psize_to_asize() 603 vdev_draid_asize_to_psize(vdev_t *vd, uint64_t asize, uint64_t txg) in vdev_draid_asize_to_psize() 617 vdev_draid_offset_to_group(vdev_t *vd, uint64_t offset) in vdev_draid_offset_to_group() 630 vdev_draid_group_to_offset(vdev_t *vd, uint64_t group) in vdev_draid_group_to_offset() 901 vdev_draid_logical_to_physical(vdev_t *vd, uint64_t logical_offset, in vdev_draid_logical_to_physical() 963 vdev_t *vd = zio->io_vd; in vdev_draid_map_alloc_row() 1120 vdev_t *vd = zio->io_vd; in vdev_draid_map_alloc() 1152 vdev_draid_get_astart(vdev_t *vd, const uint64_t start) in vdev_draid_get_astart() 1167 vdev_draid_min_asize(vdev_t *vd) in vdev_draid_min_asize() 1182 vdev_draid_min_alloc(vdev_t *vd) in vdev_draid_min_alloc() [all …]
|
H A D | vdev_initialize.c | 49 vdev_initialize_should_stop(vdev_t *vd) in vdev_initialize_should_stop() 71 vdev_t *vd = spa_lookup_by_guid(tx->tx_pool->dp_spa, guid, B_FALSE); in vdev_initialize_zap_update_sync() 109 vdev_t *vd = spa_lookup_by_guid(tx->tx_pool->dp_spa, guid, B_FALSE); in vdev_initialize_zap_remove_sync() 136 vdev_initialize_change_state(vdev_t *vd, vdev_initializing_state_t new_state) in vdev_initialize_change_state() 207 vdev_t *vd = zio->io_vd; in vdev_initialize_cb() 239 vdev_initialize_write(vdev_t *vd, uint64_t start, uint64_t size, abd_t *data) in vdev_initialize_write() 332 vdev_initialize_ranges(vdev_t *vd, abd_t *data) in vdev_initialize_ranges() 374 vdev_t *vd = (vdev_t *)arg; in vdev_initialize_xlate_progress() 389 vdev_initialize_calculate_progress(vdev_t *vd) in vdev_initialize_calculate_progress() 461 vdev_initialize_load(vdev_t *vd) in vdev_initialize_load() [all …]
|
H A D | vdev_root.c | 42 vdev_root_core_tvds(vdev_t *vd) in vdev_root_core_tvds() 47 vdev_t *cvd = vd->vdev_child[c]; in vdev_root_core_tvds() 68 too_many_errors(vdev_t *vd, uint64_t numerrors) in too_many_errors() 85 vdev_root_open(vdev_t *vd, uint64_t *asize, uint64_t *max_asize, in vdev_root_open() 100 vdev_t *cvd = vd->vdev_child[c]; in vdev_root_open() 126 vdev_root_close(vdev_t *vd) in vdev_root_close() 133 vdev_root_state_change(vdev_t *vd, int faulted, int degraded) in vdev_root_state_change()
|
H A D | vdev_trim.c | 151 vdev_t *trim_vdev; /* Leaf vdev to TRIM */ 170 vdev_trim_should_stop(vdev_t *vd) in vdev_trim_should_stop() 181 vdev_autotrim_should_stop(vdev_t *tvd) in vdev_autotrim_should_stop() 194 vdev_autotrim_wait_kick(vdev_t *vd, int num_of_kick) in vdev_autotrim_wait_kick() 228 vdev_t *vd = spa_lookup_by_guid(tx->tx_pool->dp_spa, guid, B_FALSE); in vdev_trim_zap_update_sync() 294 vdev_trim_change_state(vdev_t *vd, vdev_trim_state_t new_state, in vdev_trim_change_state() 392 vdev_t *vd = zio->io_vd; in vdev_trim_cb() 434 vdev_t *vd = zio->io_vd; in vdev_autotrim_cb() 464 vdev_t *vd = zio->io_vd; in vdev_trim_simple_cb() 501 vdev_t *vd = ta->trim_vdev; in vdev_trim_range() [all …]
|
H A D | vdev_rebuild.c | 146 clear_rebuild_bytes(vdev_t *vd) in clear_rebuild_bytes() 162 vdev_rebuild_should_stop(vdev_t *vd) in vdev_rebuild_should_stop() 175 vdev_rebuild_should_cancel(vdev_t *vd) in vdev_rebuild_should_cancel() 195 vdev_t *vd = vdev_lookup_top(spa, vdev_id); in vdev_rebuild_update_sync() 225 vdev_t *vd = vdev_lookup_top(spa, vdev_id); in vdev_rebuild_initiate_sync() 267 vdev_rebuild_log_notify(spa_t *spa, vdev_t *vd, const char *name) in vdev_rebuild_log_notify() 281 vdev_rebuild_initiate(vdev_t *vd) in vdev_rebuild_initiate() 309 vdev_t *vd = vdev_lookup_top(spa, vdev_id); in vdev_rebuild_complete_sync() 373 vdev_t *vd = vdev_lookup_top(spa, vdev_id); in vdev_rebuild_cancel_sync() 409 vdev_t *vd = vdev_lookup_top(spa, vdev_id); in vdev_rebuild_reset_sync() [all …]
|
H A D | vdev_removal.c | 172 vdev_activate(vdev_t *vd) in vdev_activate() 188 vdev_passivate(vdev_t *vd, uint64_t *txg) in vdev_passivate() 195 vdev_t *rvd = spa->spa_root_vdev; in vdev_passivate() 206 vdev_t *cvd = rvd->vdev_child[id]; in vdev_passivate() 272 vdev_t *vd; in spa_vdev_noalloc() 305 vdev_t *vd; in spa_vdev_alloc() 362 spa_vdev_removal_create(vdev_t *vd) in spa_vdev_removal_create() 416 vdev_t *vd = vdev_lookup_top(spa, vdev_id); in vdev_remove_initiate_sync() 575 vdev_t *vd = vdev_lookup_top(spa, in spa_remove_init() 603 vdev_t *vd = vdev_lookup_top(spa, indirect_vdev_id); in spa_remove_init() [all …]
|
H A D | spa_checkpoint.c | 202 vdev_t *sdc_vd; 211 vdev_t *vd = sdc->sdc_vd; in spa_checkpoint_discard_sync_callback() 259 vdev_t *rvd = spa->spa_root_vdev; in spa_checkpoint_accounting_verify() 264 vdev_t *vd = rvd->vdev_child[c]; in spa_checkpoint_accounting_verify() 284 vdev_t *vd = arg; in spa_checkpoint_discard_thread_sync() 370 vdev_t *rvd = spa->spa_root_vdev; in spa_checkpoint_discard_is_done() 403 vdev_t *rvd = spa->spa_root_vdev; in spa_checkpoint_discard_thread() 406 vdev_t *vd = rvd->vdev_child[c]; in spa_checkpoint_discard_thread()
|
H A D | vdev_label.c | 189 vdev_label_read(zio_t *zio, vdev_t *vd, int l, abd_t *buf, uint64_t offset, in vdev_label_read() 204 vdev_label_write(zio_t *zio, vdev_t *vd, int l, abd_t *buf, uint64_t offset, in vdev_label_write() 222 vdev_config_generate_stats(vdev_t *vd, nvlist_t *nv) in vdev_config_generate_stats() 404 root_vdev_actions_getprogress(vdev_t *vd, nvlist_t *nvl) in root_vdev_actions_getprogress() 442 top_vdev_actions_getprogress(vdev_t *vd, nvlist_t *nvl) in top_vdev_actions_getprogress() 458 vdev_config_generate(spa_t *spa, vdev_t *vd, boolean_t getstats, in vdev_config_generate() 756 vdev_t *rvd = spa->spa_root_vdev; in vdev_top_config_generate() 763 vdev_t *tvd = rvd->vdev_child[c]; in vdev_top_config_generate() 790 vdev_label_read_config(vdev_t *vd, uint64_t txg) in vdev_label_read_config() 889 vdev_inuse(vdev_t *vd, uint64_t crtxg, vdev_labeltype_t reason, in vdev_inuse() [all …]
|
H A D | vdev_indirect.c | 236 vdev_t *ic_vdev; 262 vdev_t *is_vdev; /* top-level vdev */ 325 vdev_indirect_mark_obsolete(vdev_t *vd, uint64_t offset, uint64_t size) in vdev_indirect_mark_obsolete() 352 vdev_t *vd = vdev_lookup_top(spa, vdev_id); in spa_vdev_indirect_mark_obsolete() 393 vdev_indirect_should_condense(vdev_t *vd) in vdev_indirect_should_condense() 487 vdev_t *vd = vdev_lookup_top(spa, scip->scip_vdev); in spa_condense_indirect_complete_sync() 594 spa_condense_indirect_generate_new_mapping(vdev_t *vd, in spa_condense_indirect_generate_new_mapping() 654 vdev_t *vd; in spa_condense_indirect_thread() 757 spa_condense_indirect_start_sync(vdev_t *vd, dmu_tx_t *tx) in spa_condense_indirect_start_sync() 814 vdev_indirect_sync_obsolete(vdev_t *vd, dmu_tx_t *tx) in vdev_indirect_sync_obsolete() [all …]
|
H A D | vdev_file.c | 71 vdev_file_hold(vdev_t *vd) in vdev_file_hold() 77 vdev_file_rele(vdev_t *vd) in vdev_file_rele() 99 vdev_file_open(vdev_t *vd, uint64_t *psize, uint64_t *max_psize, in vdev_file_open() 192 vdev_file_close(vdev_t *vd) in vdev_file_close() 212 vdev_t *vd = zio->io_vd; in vdev_file_io_strategy() 268 vdev_t *vd = zio->io_vd; in vdev_file_io_start()
|
H A D | vdev_raidz.c | 2166 vdev_raidz_open(vdev_t *vd, uint64_t *asize, uint64_t *max_asize, in vdev_raidz_open() 2186 vdev_t *cvd = vd->vdev_child[c]; in vdev_raidz_open() 2199 vdev_t *cvd = vd->vdev_child[c]; in vdev_raidz_open() 2226 vdev_raidz_close(vdev_t *vd) in vdev_raidz_close() 2270 vdev_raidz_asize_to_psize(vdev_t *vd, uint64_t asize, uint64_t txg) in vdev_raidz_asize_to_psize() 2305 vdev_raidz_psize_to_asize(vdev_t *vd, uint64_t psize, uint64_t txg) in vdev_raidz_psize_to_asize() 2335 vdev_raidz_min_asize(vdev_t *vd) in vdev_raidz_min_asize() 2350 vdev_sit_out_reads(vdev_t *vd, zio_flag_t io_flags) in vdev_sit_out_reads() 2407 vdev_t *cvd = zio->io_vd->vdev_child[rc->rc_devidx]; in vdev_raidz_io_verify() 2439 vdev_t *vd = zio->io_vd; in vdev_raidz_io_start_write() [all …]
|
H A D | vdev_mirror.c | 106 vdev_t *mc_vd; 183 vdev_mirror_load(mirror_map_t *mm, vdev_t *vd, uint64_t zio_offset) in vdev_mirror_load() 247 vdev_mirror_rebuilding(vdev_t *vd) in vdev_mirror_rebuilding() 270 vdev_t *vd = zio->io_vd; in vdev_mirror_map_init() 388 vdev_mirror_open(vdev_t *vd, uint64_t *asize, uint64_t *max_asize, in vdev_mirror_open() 402 vdev_t *cvd = vd->vdev_child[c]; in vdev_mirror_open() 415 vdev_t *cvd = vd->vdev_child[c]; in vdev_mirror_open() 435 vdev_mirror_close(vdev_t *vd) in vdev_mirror_close() 499 vdev_t *vd = mc->mc_vd; in vdev_mirror_child_readable() 510 vdev_t *vd = mc->mc_vd; in vdev_mirror_child_missing() [all …]
|
/freebsd/stand/libsa/zfs/ |
H A D | zfsimpl.c | 66 vdev_t *ic_vdev; 84 vdev_t *is_vdev; /* top-level vdev */ 153 static int vdev_indirect_read(vdev_t *, const blkptr_t *, void *, off_t, 155 static int vdev_mirror_read(vdev_t *, const blkptr_t *, void *, off_t, size_t); 159 vdev_indirect_mapping_duplicate_adjacent_entries(vdev_t *, uint64_t, 227 vdev_read_phys(vdev_t *vdev, const blkptr_t *bp, void *buf, in vdev_read_phys() 252 vdev_write_phys(vdev_t *vdev, void *buf, off_t offset, size_t size) in vdev_write_phys() 261 vdev_t *rs_vd; 269 rs_alloc(vdev_t *vd, uint64_t offset, uint64_t asize, uint64_t split_offset) in rs_alloc() 497 vdev_indirect_mapping_duplicate_adjacent_entries(vdev_t *vd, uint64_t offset, in vdev_indirect_mapping_duplicate_adjacent_entries() [all …]
|
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | vdev_geom.c | 63 vdev_t *vd; 95 vdev_geom_set_physpath(vdev_t *vd, struct g_consumer *cp, in vdev_geom_set_physpath() 143 vdev_t *vd = elem->vd; in vdev_geom_attrchanged() 157 vdev_t *vd; in vdev_geom_resize() 204 vdev_t *vd = elem->vd; in vdev_geom_orphan() 212 vdev_geom_attach(struct g_provider *pp, vdev_t *vd, boolean_t sanity) in vdev_geom_attach() 340 vdev_geom_close_locked(vdev_t *vd) in vdev_geom_close_locked() 646 vdev_attach_ok(vdev_t *vd, struct g_provider *pp) in vdev_attach_ok() 705 vdev_geom_attach_by_guids(vdev_t *vd) in vdev_geom_attach_by_guids() 754 vdev_geom_open_by_guids(vdev_t *vd) in vdev_geom_open_by_guids() [all …]
|