| /freebsd-14.2/sys/contrib/openzfs/include/sys/ |
| H A D | vdev.h | 58 extern int vdev_open(vdev_t *); 61 extern int vdev_validate(vdev_t *); 62 extern int vdev_copy_path_strict(vdev_t *, vdev_t *); 63 extern void vdev_copy_path_relaxed(vdev_t *, vdev_t *); 64 extern void vdev_close(vdev_t *); 66 extern void vdev_reopen(vdev_t *); 72 extern vdev_t *vdev_lookup_by_guid(vdev_t *vd, uint64_t guid); 99 extern void vdev_hold(vdev_t *); 100 extern void vdev_rele(vdev_t *); 106 extern void vdev_split(vdev_t *vd); [all …]
|
| H A D | vdev_impl.h | 72 typedef void vdev_fini_func_t(vdev_t *vd); 75 typedef void vdev_close_func_t(vdev_t *vd); 84 typedef void vdev_hold_func_t(vdev_t *vd); 85 typedef void vdev_rele_func_t(vdev_t *vd); 143 vdev_t *vq_vdev; 571 extern void vdev_free(vdev_t *vd); 576 extern void vdev_add_child(vdev_t *pvd, vdev_t *cvd); 577 extern void vdev_remove_child(vdev_t *pvd, vdev_t *cvd); 579 extern vdev_t *vdev_add_parent(vdev_t *cvd, vdev_ops_t *ops); 586 extern int vdev_load(vdev_t *vd); [all …]
|
| H A D | vdev_draid.h | 95 extern boolean_t vdev_draid_readable(vdev_t *, uint64_t); 96 extern boolean_t vdev_draid_missing(vdev_t *, uint64_t, uint64_t, uint64_t); 97 extern uint64_t vdev_draid_asize_to_psize(vdev_t *, uint64_t); 100 extern nvlist_t *vdev_draid_read_config_spare(vdev_t *); 103 extern vdev_t *vdev_draid_spare_get_child(vdev_t *, uint64_t); 104 extern vdev_t *vdev_draid_spare_get_parent(vdev_t *); 105 extern int vdev_draid_spare_create(nvlist_t *, vdev_t *, uint64_t *, uint64_t);
|
| H A D | vdev_trim.h | 37 extern void vdev_trim(vdev_t *vd, uint64_t rate, boolean_t partial, 39 extern void vdev_trim_stop(vdev_t *vd, vdev_trim_state_t tgt, list_t *vd_list); 40 extern void vdev_trim_stop_all(vdev_t *vd, vdev_trim_state_t tgt_state); 42 extern void vdev_trim_restart(vdev_t *vd); 46 extern void vdev_autotrim_stop_wait(vdev_t *vd); 48 extern int vdev_trim_simple(vdev_t *vd, uint64_t start, uint64_t size);
|
| H A D | vdev_rebuild.h | 66 vdev_t *vr_top_vdev; /* top-level vdev to rebuild */ 88 boolean_t vdev_rebuild_active(vdev_t *); 90 int vdev_rebuild_load(vdev_t *); 91 void vdev_rebuild(vdev_t *); 92 void vdev_rebuild_stop_wait(vdev_t *); 96 int vdev_rebuild_get_stats(vdev_t *, vdev_rebuild_stat_t *);
|
| H A D | vdev_initialize.h | 35 extern void vdev_initialize(vdev_t *vd); 36 extern void vdev_uninitialize(vdev_t *vd); 37 extern void vdev_initialize_stop(vdev_t *vd, 39 extern void vdev_initialize_stop_all(vdev_t *vd, 42 extern void vdev_initialize_restart(vdev_t *vd);
|
| 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); 119 void metaslab_space_update(vdev_t *, metaslab_class_t *, 122 metaslab_group_t *metaslab_group_create(metaslab_class_t *, vdev_t *, int); 141 range_seg_type_t metaslab_calculate_range_tree_type(vdev_t *vdev,
|
| H A D | zio.h | 482 vdev_t *io_vd; 545 extern zio_t *zio_null(zio_t *pio, spa_t *spa, vdev_t *vd, 576 extern zio_t *zio_ioctl(zio_t *pio, spa_t *spa, vdev_t *vd, int cmd, 583 extern zio_t *zio_read_phys(zio_t *pio, vdev_t *vd, uint64_t offset, 588 extern zio_t *zio_write_phys(zio_t *pio, vdev_t *vd, uint64_t offset, 598 extern void zio_flush(zio_t *zio, vdev_t *vd); 626 extern zio_t *zio_vdev_child_io(zio_t *zio, blkptr_t *bp, vdev_t *vd, 631 extern zio_t *zio_vdev_delegated_io(vdev_t *vd, uint64_t offset, 682 extern int zio_handle_device_injections(vdev_t *vd, zio_t *zio, int err1, 691 extern int zfs_ereport_start_checksum(spa_t *spa, vdev_t *vd, [all …]
|
| H A D | spa.h | 58 typedef struct vdev vdev_t; typedef 805 extern void spa_spare_add(vdev_t *vd); 806 extern void spa_spare_remove(vdev_t *vd); 808 extern void spa_spare_activate(vdev_t *vd); 811 extern void spa_l2cache_add(vdev_t *vd); 812 extern void spa_l2cache_remove(vdev_t *vd); 814 extern void spa_l2cache_activate(vdev_t *vd); 846 vdev_t *parent, uint_t id, int atype); 1150 extern void zfs_ereport_clear(spa_t *spa, vdev_t *vd); 1153 extern void zfs_post_remove(spa_t *spa, vdev_t *vd); [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/module/zfs/ |
| H A D | vdev.c | 434 vdev_t * 449 vdev_t * 492 vdev_add_child(vdev_t *pvd, vdev_t *cvd) in vdev_add_child() 537 vdev_remove_child(vdev_t *pvd, vdev_t *cvd) in vdev_remove_child() 616 vdev_t * 1189 vdev_top_transfer(vdev_t *svd, vdev_t *tvd) in vdev_top_transfer() 1301 vdev_top_update(vdev_t *tvd, vdev_t *vd) in vdev_top_update() 1316 vdev_t * 2514 vdev_copy_path_impl(vdev_t *svd, vdev_t *dvd) in vdev_copy_path_impl() 2557 vdev_copy_path_strict(vdev_t *svd, vdev_t *dvd) in vdev_copy_path_strict() [all …]
|
| H A D | vdev_draid.c | 959 vdev_t *vd = zio->io_vd; in vdev_draid_map_alloc_row() 1130 vdev_t *vd = zio->io_vd; in vdev_draid_map_alloc() 1359 static vdev_t * 1609 vdev_draid_close(vdev_t *vd) in vdev_draid_close() 1866 vdev_t *vd = zio->io_vd; in vdev_draid_io_start_write() 1901 vdev_t *vd = zio->io_vd; in vdev_draid_io_start_read() 1948 vdev_t *svd; in vdev_draid_io_start_read() 2297 vdev_draid_fini(vdev_t *vd) in vdev_draid_fini() 2370 vdev_t * 2408 vdev_t * [all …]
|
| H A D | vdev_root.c | 41 vdev_root_core_tvds(vdev_t *vd) in vdev_root_core_tvds() 46 vdev_t *cvd = vd->vdev_child[c]; in vdev_root_core_tvds() 67 too_many_errors(vdev_t *vd, uint64_t numerrors) in too_many_errors() 84 vdev_root_open(vdev_t *vd, uint64_t *asize, uint64_t *max_asize, in vdev_root_open() 99 vdev_t *cvd = vd->vdev_child[c]; in vdev_root_open() 125 vdev_root_close(vdev_t *vd) in vdev_root_close() 132 vdev_root_state_change(vdev_t *vd, int faulted, int degraded) in vdev_root_state_change()
|
| H A D | vdev_initialize.c | 48 vdev_initialize_should_stop(vdev_t *vd) in vdev_initialize_should_stop() 204 vdev_t *vd = zio->io_vd; in vdev_initialize_cb() 370 vdev_t *vd = (vdev_t *)arg; in vdev_initialize_xlate_progress() 457 vdev_initialize_load(vdev_t *vd) in vdev_initialize_load() 483 vdev_t *vd = arg; in vdev_initialize_xlate_range_add() 515 vdev_t *vd = arg; in vdev_initialize_range_add() 527 vdev_t *vd = arg; in vdev_initialize_thread() 625 vdev_initialize(vdev_t *vd) in vdev_initialize() 645 vdev_uninitialize(vdev_t *vd) in vdev_uninitialize() 680 vdev_t *vd; in vdev_initialize_stop_wait() [all …]
|
| H A D | vdev_trim.c | 388 vdev_t *vd = zio->io_vd; in vdev_trim_cb() 430 vdev_t *vd = zio->io_vd; in vdev_autotrim_cb() 460 vdev_t *vd = zio->io_vd; in vdev_trim_simple_cb() 656 vdev_t *vd = (vdev_t *)arg; in vdev_trim_xlate_progress() 749 vdev_trim_load(vdev_t *vd) in vdev_trim_load() 875 vdev_t *vd = arg; in vdev_trim_thread() 1037 vdev_t *vd; in vdev_trim_stop_wait() 1112 vdev_t *vd_l2cache; in vdev_trim_stop_all() 1211 vdev_t *vd = arg; in vdev_autotrim_thread() 1534 vdev_t *tvd; in vdev_autotrim_kick() [all …]
|
| H A D | vdev_rebuild.c | 144 clear_rebuild_bytes(vdev_t *vd) in clear_rebuild_bytes() 160 vdev_rebuild_should_stop(vdev_t *vd) in vdev_rebuild_should_stop() 279 vdev_rebuild_initiate(vdev_t *vd) in vdev_rebuild_initiate() 485 vdev_t *vd = vr->vr_top_vdev; in vdev_rebuild_cb() 555 vdev_t *vd = vr->vr_top_vdev; in vdev_rebuild_range() 634 vdev_t *vd = vr->vr_top_vdev; in vdev_rebuild_ranges() 708 vdev_rebuild_load(vdev_t *vd) in vdev_rebuild_load() 757 vdev_t *vd = arg; in vdev_rebuild_thread() 759 vdev_t *rvd = spa->spa_root_vdev; in vdev_rebuild_thread() 982 vdev_rebuild_active(vdev_t *vd) in vdev_rebuild_active() [all …]
|
| H A D | spa_checkpoint.c | 201 vdev_t *sdc_vd; 210 vdev_t *vd = sdc->sdc_vd; in spa_checkpoint_discard_sync_callback() 258 vdev_t *rvd = spa->spa_root_vdev; in spa_checkpoint_accounting_verify() 263 vdev_t *vd = rvd->vdev_child[c]; in spa_checkpoint_accounting_verify() 283 vdev_t *vd = arg; in spa_checkpoint_discard_thread_sync() 369 vdev_t *rvd = spa->spa_root_vdev; in spa_checkpoint_discard_is_done() 402 vdev_t *rvd = spa->spa_root_vdev; in spa_checkpoint_discard_thread() 405 vdev_t *vd = rvd->vdev_child[c]; in spa_checkpoint_discard_thread()
|
| H A D | vdev_removal.c | 171 vdev_activate(vdev_t *vd) in vdev_activate() 199 vdev_t *rvd = spa->spa_root_vdev; in vdev_passivate() 277 vdev_t *vd; in spa_vdev_noalloc() 310 vdev_t *vd; in spa_vdev_alloc() 367 spa_vdev_removal_create(vdev_t *vd) in spa_vdev_removal_create() 577 vdev_t *vd = vdev_lookup_top(spa, in spa_remove_init() 859 vdev_t *pvd; in spa_finish_removal() 883 vdev_t *vd = arg; in free_mapped_segment_cb() 1078 vdev_t *source_child_vd = NULL; in spa_vdev_copy_one_child() 1313 vdev_t *ivd; in vdev_remove_replace_with_indirect() [all …]
|
| H A D | vdev_indirect.c | 234 vdev_t *ic_vdev; 260 vdev_t *is_vdev; /* top-level vdev */ 350 vdev_t *vd = vdev_lookup_top(spa, vdev_id); in spa_vdev_indirect_mark_obsolete() 391 vdev_indirect_should_condense(vdev_t *vd) in vdev_indirect_should_condense() 652 vdev_t *vd; in spa_condense_indirect_thread() 943 vdev_indirect_close(vdev_t *vd) in vdev_indirect_close() 960 vdev_t *rs_vd; 1068 vdev_t *v = rs->rs_vd; in vdev_indirect_remap() 1132 vdev_t *dst_v = vdev_lookup_top(spa, dst_vdev); in vdev_indirect_remap() 1392 vdev_t *vd = ic->ic_vdev; in vdev_indirect_checksum_error() [all …]
|
| H A D | vdev_label.c | 220 vdev_config_generate_stats(vdev_t *vd, nvlist_t *nv) in vdev_config_generate_stats() 742 vdev_t *rvd = spa->spa_root_vdev; in vdev_top_config_generate() 749 vdev_t *tvd = rvd->vdev_child[c]; in vdev_top_config_generate() 776 vdev_label_read_config(vdev_t *vd, uint64_t txg) in vdev_label_read_config() 1380 vdev_label_write_bootenv(vdev_t *vd, nvlist_t *env) in vdev_label_write_bootenv() 1530 vdev_t *vd = zio->io_vd; in vdev_uberblock_load_done() 1642 vdev_copy_uberblocks(vdev_t *vd) in vdev_copy_uberblocks() 1709 uberblock_t *ub, vdev_t *vd, int flags) in vdev_uberblock_sync() 1851 vdev_t *vd, int l, uint64_t txg, int flags) in vdev_label_sync() 1908 vdev_t *vd; in vdev_label_sync_list() [all …]
|
| H A D | vdev_mirror.c | 105 vdev_t *mc_vd; 182 vdev_mirror_load(mirror_map_t *mm, vdev_t *vd, uint64_t zio_offset) in vdev_mirror_load() 246 vdev_mirror_rebuilding(vdev_t *vd) in vdev_mirror_rebuilding() 269 vdev_t *vd = zio->io_vd; in vdev_mirror_map_init() 387 vdev_mirror_open(vdev_t *vd, uint64_t *asize, uint64_t *max_asize, in vdev_mirror_open() 401 vdev_t *cvd = vd->vdev_child[c]; in vdev_mirror_open() 414 vdev_t *cvd = vd->vdev_child[c]; in vdev_mirror_open() 434 vdev_mirror_close(vdev_t *vd) in vdev_mirror_close() 498 vdev_t *vd = mc->mc_vd; in vdev_mirror_child_readable() 509 vdev_t *vd = mc->mc_vd; in vdev_mirror_child_missing() [all …]
|
| H A D | spa.c | 1841 vdev_t *vd; in spa_config_parse() 3259 vdev_t **vd; in spa_try_repair() 3789 vdev_t *rvd; 5867 vdev_t *vd; 6081 vdev_t *vd; 6209 vdev_t *vd; 6250 vdev_t *rvd; 8522 vdev_t *vd; 10046 vdev_t * 10049 vdev_t *vd; [all …]
|
| /freebsd-14.2/stand/libsa/zfs/ |
| H A D | zfsimpl.c | 66 vdev_t *ic_vdev; 267 vdev_t *rs_vd; 541 vdev_t *rvd; in vdev_lookup_top() 806 vdev_t *kid; in vdev_mirror_read() 825 vdev_t *kid; in vdev_replacing_read() 1038 vdev_find_previous(vdev_t *top_vdev, vdev_t *vdev) in vdev_find_previous() 1062 vdev_t *v; in vdev_child_count() 1076 vdev_insert(vdev_t *top_vdev, vdev_t *vdev) in vdev_insert() 1188 vdev_t *kid; in vdev_set_state() 3857 vdev_t *vd; in zfs_get_bootenv_spa() [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/module/os/freebsd/zfs/ |
| H A D | vdev_file.c | 60 vdev_file_hold(vdev_t *vd) in vdev_file_hold() 66 vdev_file_rele(vdev_t *vd) in vdev_file_rele() 88 vdev_file_open(vdev_t *vd, uint64_t *psize, uint64_t *max_psize, in vdev_file_open() 181 vdev_file_close(vdev_t *vd) in vdev_file_close() 213 vdev_t *vd = zio->io_vd; in vdev_file_io_strategy() 247 vdev_t *vd = zio->io_vd; in vdev_file_io_start()
|
| H A D | vdev_geom.c | 62 vdev_t *vd; 142 vdev_t *vd = elem->vd; in vdev_geom_attrchanged() 156 vdev_t *vd; in vdev_geom_resize() 203 vdev_t *vd = elem->vd; in vdev_geom_orphan() 339 vdev_geom_close_locked(vdev_t *vd) in vdev_geom_close_locked() 757 vdev_geom_open_by_guids(vdev_t *vd) in vdev_geom_open_by_guids() 986 vdev_geom_close(vdev_t *vd) in vdev_geom_close() 1011 vdev_t *vd; in vdev_geom_io_intr() 1150 vdev_t *vd; in vdev_geom_io_start() 1294 vdev_geom_hold(vdev_t *vd) in vdev_geom_hold() [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/module/os/linux/zfs/ |
| H A D | vdev_file.c | 60 vdev_file_hold(vdev_t *vd) in vdev_file_hold() 66 vdev_file_rele(vdev_t *vd) in vdev_file_rele() 88 vdev_file_open(vdev_t *vd, uint64_t *psize, uint64_t *max_psize, in vdev_file_open() 180 vdev_file_close(vdev_t *vd) in vdev_file_close() 200 vdev_t *vd = zio->io_vd; in vdev_file_io_strategy() 242 vdev_t *vd = zio->io_vd; in vdev_file_io_start()
|