| /freebsd-13.1/sys/contrib/openzfs/include/sys/ |
| H A D | vdev.h | 57 extern int vdev_open(vdev_t *); 60 extern int vdev_validate(vdev_t *); 61 extern int vdev_copy_path_strict(vdev_t *, vdev_t *); 62 extern void vdev_copy_path_relaxed(vdev_t *, vdev_t *); 63 extern void vdev_close(vdev_t *); 65 extern void vdev_reopen(vdev_t *); 71 extern vdev_t *vdev_lookup_by_guid(vdev_t *vd, uint64_t guid); 98 extern void vdev_hold(vdev_t *); 99 extern void vdev_rele(vdev_t *); 105 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); 161 vdev_t *vq_vdev; 573 extern void vdev_free(vdev_t *vd); 578 extern void vdev_add_child(vdev_t *pvd, vdev_t *cvd); 579 extern void vdev_remove_child(vdev_t *pvd, vdev_t *cvd); 581 extern vdev_t *vdev_add_parent(vdev_t *cvd, vdev_ops_t *ops); 588 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); 45 extern void vdev_autotrim_stop_wait(vdev_t *vd); 47 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 */ 87 boolean_t vdev_rebuild_active(vdev_t *); 89 int vdev_rebuild_load(vdev_t *); 90 void vdev_rebuild(vdev_t *); 91 void vdev_rebuild_stop_wait(vdev_t *); 95 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_initialize_stop(vdev_t *vd, 38 extern void vdev_initialize_stop_all(vdev_t *vd, 41 extern void vdev_initialize_restart(vdev_t *vd);
|
| H A D | metaslab.h | 89 void metaslab_free_concrete(vdev_t *, uint64_t, uint64_t, boolean_t); 91 void metaslab_free_impl_cb(uint64_t, vdev_t *, uint64_t, uint64_t, void *); 94 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 | 478 vdev_t *io_vd; 535 extern zio_t *zio_null(zio_t *pio, spa_t *spa, vdev_t *vd, 565 extern zio_t *zio_ioctl(zio_t *pio, spa_t *spa, vdev_t *vd, int cmd, 572 extern zio_t *zio_read_phys(zio_t *pio, vdev_t *vd, uint64_t offset, 577 extern zio_t *zio_write_phys(zio_t *pio, vdev_t *vd, uint64_t offset, 587 extern void zio_flush(zio_t *zio, vdev_t *vd); 614 extern zio_t *zio_vdev_child_io(zio_t *zio, blkptr_t *bp, vdev_t *vd, 619 extern zio_t *zio_vdev_delegated_io(vdev_t *vd, uint64_t offset, 669 extern int zio_handle_device_injections(vdev_t *vd, zio_t *zio, int err1, 678 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 828 extern void spa_spare_add(vdev_t *vd); 829 extern void spa_spare_remove(vdev_t *vd); 831 extern void spa_spare_activate(vdev_t *vd); 834 extern void spa_l2cache_add(vdev_t *vd); 835 extern void spa_l2cache_remove(vdev_t *vd); 837 extern void spa_l2cache_activate(vdev_t *vd); 869 vdev_t *parent, uint_t id, int atype); 1157 extern void zfs_ereport_clear(spa_t *spa, vdev_t *vd); 1160 extern void zfs_post_remove(spa_t *spa, vdev_t *vd); [all …]
|
| /freebsd-13.1/sys/contrib/openzfs/module/zfs/ |
| H A D | vdev.c | 397 vdev_t * 412 vdev_t * 455 vdev_add_child(vdev_t *pvd, vdev_t *cvd) in vdev_add_child() 500 vdev_remove_child(vdev_t *pvd, vdev_t *cvd) in vdev_remove_child() 579 vdev_t * 1127 vdev_top_transfer(vdev_t *svd, vdev_t *tvd) in vdev_top_transfer() 1237 vdev_top_update(vdev_t *tvd, vdev_t *vd) in vdev_top_update() 1252 vdev_t * 2377 vdev_copy_path_impl(vdev_t *svd, vdev_t *dvd) in vdev_copy_path_impl() 2424 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() 1128 vdev_t *vd = zio->io_vd; in vdev_draid_map_alloc() 1357 static vdev_t * 1601 vdev_draid_close(vdev_t *vd) in vdev_draid_close() 1858 vdev_t *vd = zio->io_vd; in vdev_draid_io_start_write() 1893 vdev_t *vd = zio->io_vd; in vdev_draid_io_start_read() 1940 vdev_t *svd; in vdev_draid_io_start_read() 2289 vdev_draid_fini(vdev_t *vd) in vdev_draid_fini() 2362 vdev_t * 2400 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 | 52 vdev_initialize_should_stop(vdev_t *vd) in vdev_initialize_should_stop() 165 vdev_t *vd = zio->io_vd; in vdev_initialize_cb() 337 vdev_t *vd = (vdev_t *)arg; in vdev_initialize_xlate_progress() 424 vdev_initialize_load(vdev_t *vd) in vdev_initialize_load() 450 vdev_t *vd = arg; in vdev_initialize_xlate_range_add() 482 vdev_t *vd = arg; in vdev_initialize_range_add() 494 vdev_t *vd = arg; in vdev_initialize_thread() 592 vdev_initialize(vdev_t *vd) in vdev_initialize() 629 vdev_t *vd; in vdev_initialize_stop_wait() 707 list_create(&vd_list, sizeof (vdev_t), in vdev_initialize_stop_all() [all …]
|
| H A D | vdev_trim.c | 367 vdev_t *vd = zio->io_vd; in vdev_trim_cb() 409 vdev_t *vd = zio->io_vd; in vdev_autotrim_cb() 439 vdev_t *vd = zio->io_vd; in vdev_trim_simple_cb() 476 vdev_t *vd = ta->trim_vdev; in vdev_trim_range() 621 vdev_t *vd = (vdev_t *)arg; in vdev_trim_xlate_progress() 714 vdev_trim_load(vdev_t *vd) in vdev_trim_load() 840 vdev_t *vd = arg; in vdev_trim_thread() 1007 vdev_t *vd; in vdev_trim_stop_wait() 1082 vdev_t *vd_l2cache; in vdev_trim_stop_all() 1181 vdev_t *vd = arg; in vdev_autotrim_thread() [all …]
|
| H A D | vdev_rebuild.c | 142 clear_rebuild_bytes(vdev_t *vd) in clear_rebuild_bytes() 158 vdev_rebuild_should_stop(vdev_t *vd) in vdev_rebuild_should_stop() 277 vdev_rebuild_initiate(vdev_t *vd) in vdev_rebuild_initiate() 472 vdev_t *vd = vr->vr_top_vdev; in vdev_rebuild_cb() 542 vdev_t *vd = vr->vr_top_vdev; in vdev_rebuild_range() 619 vdev_t *vd = vr->vr_top_vdev; in vdev_rebuild_ranges() 693 vdev_rebuild_load(vdev_t *vd) in vdev_rebuild_load() 742 vdev_t *vd = arg; in vdev_rebuild_thread() 958 vdev_rebuild_active(vdev_t *vd) in vdev_rebuild_active() 986 vdev_rebuild(vdev_t *vd) in vdev_rebuild() [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_indirect.c | 234 vdev_t *ic_vdev; 260 vdev_t *is_vdev; /* top-level vdev */ 351 vdev_t *vd = vdev_lookup_top(spa, vdev_id); in spa_vdev_indirect_mark_obsolete() 392 vdev_indirect_should_condense(vdev_t *vd) in vdev_indirect_should_condense() 653 vdev_t *vd; in spa_condense_indirect_thread() 944 vdev_indirect_close(vdev_t *vd) in vdev_indirect_close() 961 vdev_t *rs_vd; 1069 vdev_t *v = rs->rs_vd; in vdev_indirect_remap() 1133 vdev_t *dst_v = vdev_lookup_top(spa, dst_vdev); in vdev_indirect_remap() 1391 vdev_t *vd = ic->ic_vdev; in vdev_indirect_checksum_error() [all …]
|
| H A D | vdev_removal.c | 196 spa_vdev_removal_create(vdev_t *vd) in spa_vdev_removal_create() 406 vdev_t *vd = vdev_lookup_top(spa, in spa_remove_init() 688 vdev_t *pvd; in spa_finish_removal() 712 vdev_t *vd = arg; in free_mapped_segment_cb() 907 vdev_t *source_child_vd = NULL; in spa_vdev_copy_one_child() 1142 vdev_t *ivd; in vdev_remove_replace_with_indirect() 1842 vdev_t *rvd = spa->spa_root_vdev; in vdev_remove_make_hole_and_free() 1978 spa_vdev_remove_top_check(vdev_t *vd) in spa_vdev_remove_top_check() 2064 vdev_t *rvd = spa->spa_root_vdev; in spa_vdev_remove_top_check() 2067 vdev_t *cvd = rvd->vdev_child[id]; in spa_vdev_remove_top_check() [all …]
|
| H A D | vdev_label.c | 220 vdev_config_generate_stats(vdev_t *vd, nvlist_t *nv) in vdev_config_generate_stats() 633 vdev_t *cvd = vd->vdev_child[c]; in vdev_config_generate() 719 vdev_t *rvd = spa->spa_root_vdev; in vdev_top_config_generate() 726 vdev_t *tvd = rvd->vdev_child[c]; in vdev_top_config_generate() 753 vdev_label_read_config(vdev_t *vd, uint64_t txg) in vdev_label_read_config() 1465 vdev_t *vd = zio->io_vd; in vdev_uberblock_load_done() 1577 vdev_copy_uberblocks(vdev_t *vd) in vdev_copy_uberblocks() 1644 uberblock_t *ub, vdev_t *vd, int flags) in vdev_uberblock_sync() 1763 vdev_t *vd, int l, uint64_t txg, int flags) in vdev_label_sync() 1820 vdev_t *vd; in vdev_label_sync_list() [all …]
|
| H A D | spa.c | 1480 vdev_t *vd; in spa_config_parse() 2876 vdev_t **vd; in spa_try_repair() 3323 vdev_t *rvd; 5337 vdev_t *vd; 5553 vdev_t *vd; 5685 vdev_t *vd; 5726 vdev_t *rvd; 7967 vdev_t *vd; 9451 vdev_t * 9454 vdev_t *vd; [all …]
|
| H A D | vdev_mirror.c | 104 vdev_t *mc_vd; 180 vdev_mirror_load(mirror_map_t *mm, vdev_t *vd, uint64_t zio_offset) in vdev_mirror_load() 244 vdev_mirror_rebuilding(vdev_t *vd) in vdev_mirror_rebuilding() 267 vdev_t *vd = zio->io_vd; in vdev_mirror_map_init() 385 vdev_mirror_open(vdev_t *vd, uint64_t *asize, uint64_t *max_asize, in vdev_mirror_open() 399 vdev_t *cvd = vd->vdev_child[c]; in vdev_mirror_open() 426 vdev_mirror_close(vdev_t *vd) in vdev_mirror_close() 516 vdev_t *vd = mc->mc_vd; in vdev_mirror_child_readable() 527 vdev_t *vd = mc->mc_vd; in vdev_mirror_child_missing() 859 vdev_mirror_state_change(vdev_t *vd, int faulted, int degraded) in vdev_mirror_state_change() [all …]
|
| /freebsd-13.1/stand/libsa/zfs/ |
| H A D | zfsimpl.c | 69 vdev_t *ic_vdev; 273 vdev_t *rs_vd; 547 vdev_t *rvd; in vdev_lookup_top() 598 vdev_t *kid; in vdev_indirect_gather_splits() 812 vdev_t *kid; in vdev_mirror_read() 831 vdev_t *kid; in vdev_replacing_read() 1044 vdev_find_previous(vdev_t *top_vdev, vdev_t *vdev) in vdev_find_previous() 1068 vdev_t *v; in vdev_child_count() 1082 vdev_insert(vdev_t *top_vdev, vdev_t *vdev) in vdev_insert() 1194 vdev_t *kid; in vdev_set_state() [all …]
|
| /freebsd-13.1/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()
|
| /freebsd-13.1/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; 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() 340 vdev_geom_close_locked(vdev_t *vd) in vdev_geom_close_locked() 758 vdev_geom_open_by_guids(vdev_t *vd) in vdev_geom_open_by_guids() 988 vdev_geom_close(vdev_t *vd) in vdev_geom_close() 1013 vdev_t *vd; in vdev_geom_io_intr() 1148 vdev_t *vd; in vdev_geom_io_start() 1292 vdev_geom_hold(vdev_t *vd) in vdev_geom_hold() [all …]
|