| /freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/ |
| H A D | vdev.h | 53 extern int vdev_open(vdev_t *); 56 extern int vdev_validate(vdev_t *); 57 extern int vdev_copy_path_strict(vdev_t *, vdev_t *); 58 extern void vdev_copy_path_relaxed(vdev_t *, vdev_t *); 59 extern void vdev_close(vdev_t *); 61 extern void vdev_reopen(vdev_t *); 67 extern vdev_t *vdev_lookup_by_guid(vdev_t *vd, uint64_t guid); 90 extern void vdev_hold(vdev_t *); 91 extern void vdev_rele(vdev_t *); 98 extern void vdev_split(vdev_t *vd); [all …]
|
| H A D | vdev_impl.h | 70 typedef void vdev_close_func_t(vdev_t *vd); 76 typedef void vdev_hold_func_t(vdev_t *vd); 77 typedef void vdev_rele_func_t(vdev_t *vd); 141 vdev_t *vq_vdev; 231 vdev_t *vdev_top; /* top-level vdev */ 458 extern void vdev_free(vdev_t *vd); 463 extern void vdev_add_child(vdev_t *pvd, vdev_t *cvd); 464 extern void vdev_remove_child(vdev_t *pvd, vdev_t *cvd); 466 extern vdev_t *vdev_add_parent(vdev_t *cvd, vdev_ops_t *ops); 473 extern int vdev_load(vdev_t *vd); [all …]
|
| H A D | vdev_initialize.h | 33 extern void vdev_initialize(vdev_t *vd); 34 extern void vdev_initialize_stop(vdev_t *vd, 36 extern void vdev_initialize_stop_all(vdev_t *vd, 38 extern void vdev_initialize_restart(vdev_t *vd); 39 extern void vdev_xlate(vdev_t *vd, const range_seg_t *logical_rs,
|
| H A D | trim_map.h | 37 extern void trim_map_create(vdev_t *vd); 38 extern void trim_map_destroy(vdev_t *vd); 39 extern void trim_map_free(vdev_t *vd, uint64_t offset, uint64_t size, uint64_t txg);
|
| H A D | zio.h | 454 vdev_t *io_vd; 507 extern zio_t *zio_null(zio_t *pio, spa_t *spa, vdev_t *vd, 537 extern zio_t *zio_ioctl(zio_t *pio, spa_t *spa, vdev_t *vd, int cmd, 541 extern zio_t *zio_read_phys(zio_t *pio, vdev_t *vd, uint64_t offset, 546 extern zio_t *zio_write_phys(zio_t *pio, vdev_t *vd, uint64_t offset, 556 extern void zio_flush(zio_t *zio, vdev_t *vd); 557 extern zio_t *zio_trim(zio_t *zio, spa_t *spa, vdev_t *vd, uint64_t offset, 584 extern zio_t *zio_vdev_child_io(zio_t *zio, blkptr_t *bp, vdev_t *vd, 589 extern zio_t *zio_vdev_delegated_io(vdev_t *vd, uint64_t offset, 631 extern int zio_handle_device_injection(vdev_t *vd, zio_t *zio, int error); [all …]
|
| H A D | metaslab.h | 73 void metaslab_free_concrete(vdev_t *, uint64_t, uint64_t, boolean_t); 75 void metaslab_free_impl_cb(uint64_t, vdev_t *, uint64_t, uint64_t, void *); 78 int metaslab_claim_impl(vdev_t *, uint64_t, uint64_t, uint64_t); 104 metaslab_group_t *metaslab_group_create(metaslab_class_t *, vdev_t *, int);
|
| H A D | spa.h | 52 typedef struct vdev vdev_t; typedef 696 extern void spa_spare_add(vdev_t *vd); 697 extern void spa_spare_remove(vdev_t *vd); 699 extern void spa_spare_activate(vdev_t *vd); 702 extern void spa_l2cache_add(vdev_t *vd); 703 extern void spa_l2cache_remove(vdev_t *vd); 705 extern void spa_l2cache_activate(vdev_t *vd); 855 extern vdev_t *spa_lookup_by_guid(spa_t *spa, uint64_t guid, 907 extern void zfs_post_remove(spa_t *spa, vdev_t *vd); 908 extern void zfs_post_state_change(spa_t *spa, vdev_t *vd); [all …]
|
| /freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
| H A D | vdev.c | 388 vdev_t * 403 vdev_t * 440 vdev_add_child(vdev_t *pvd, vdev_t *cvd) in vdev_add_child() 481 vdev_remove_child(vdev_t *pvd, vdev_t *cvd) in vdev_remove_child() 554 vdev_t * 1000 vdev_top_transfer(vdev_t *svd, vdev_t *tvd) in vdev_top_transfer() 1096 vdev_top_update(vdev_t *tvd, vdev_t *vd) in vdev_top_update() 1110 vdev_t * 1957 vdev_copy_path_impl(vdev_t *svd, vdev_t *dvd) in vdev_copy_path_impl() 1980 vdev_copy_path_strict(vdev_t *svd, vdev_t *dvd) in vdev_copy_path_strict() [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() 124 vdev_root_close(vdev_t *vd) in vdev_root_close() 131 vdev_root_state_change(vdev_t *vd, int faulted, int degraded) in vdev_root_state_change()
|
| H A D | vdev_initialize.c | 54 vdev_initialize_should_stop(vdev_t *vd) in vdev_initialize_should_stop() 75 vdev_t *vd = spa_lookup_by_guid(tx->tx_pool->dp_spa, guid, B_FALSE); in vdev_initialize_zap_update_sync() 160 vdev_t *vd = zio->io_vd; in vdev_initialize_cb() 276 vdev_t *pvd = vd->vdev_parent; in vdev_xlate() 328 vdev_initialize_ranges(vdev_t *vd, abd_t *data) in vdev_initialize_ranges() 441 vdev_initialize_calculate_progress(vdev_t *vd) in vdev_initialize_calculate_progress() 515 vdev_initialize_load(vdev_t *vd) in vdev_initialize_load() 541 vdev_t *vd = arg; in vdev_initialize_range_add() 588 vdev_t *vd = arg; in vdev_initialize_thread() 675 vdev_initialize(vdev_t *vd) in vdev_initialize() [all …]
|
| H A D | vdev_indirect.c | 230 vdev_t *ic_vdev; 248 vdev_t *is_vdev; /* top-level vdev */ 327 vdev_t *vd = vdev_lookup_top(spa, vdev_id); in spa_vdev_indirect_mark_obsolete() 368 vdev_indirect_should_condense(vdev_t *vd) in vdev_indirect_should_condense() 626 vdev_t *vd; in spa_condense_indirect_thread() 870 vdev_obsolete_sm_object(vdev_t *vd) in vdev_obsolete_sm_object() 905 vdev_indirect_close(vdev_t *vd) in vdev_indirect_close() 922 vdev_t *rs_vd; 1030 vdev_t *v = rs->rs_vd; in vdev_indirect_remap() 1356 vdev_t *vd = ic->ic_vdev; [all …]
|
| H A D | vdev_disk.c | 46 static void vdev_disk_close(vdev_t *); 69 vdev_disk_alloc(vdev_t *vd) in vdev_disk_alloc() 82 vdev_disk_free(vdev_t *vd) in vdev_disk_free() 109 vdev_t *vd = (vdev_t *)arg; in vdev_disk_off_notify() 145 vdev_t *vd = (vdev_t *)arg; in vdev_disk_off_finalize() 180 vdev_t *vd = (vdev_t *)arg; in vdev_disk_dgrd_finalize() 202 vdev_disk_hold(vdev_t *vd) in vdev_disk_hold() 244 vdev_disk_rele(vdev_t *vd) in vdev_disk_rele() 606 vdev_disk_close(vdev_t *vd) in vdev_disk_close() 747 vdev_t *vd = zio->io_vd; in vdev_disk_io_start() [all …]
|
| H A D | vdev_removal.c | 186 spa_vdev_removal_create(vdev_t *vd) in spa_vdev_removal_create() 399 vdev_t *vd = vdev_lookup_top(spa, in spa_remove_init() 680 vdev_t *pvd = vdev_lookup_top(spa, in spa_finish_removal() 702 vdev_t *vd = arg; in free_mapped_segment_cb() 878 vdev_t *source_child_vd; in spa_vdev_copy_one_child() 1095 vdev_t *ivd; in vdev_remove_replace_with_indirect() 1746 vdev_t *rvd = spa->spa_root_vdev; in vdev_remove_make_hole_and_free() 1862 spa_vdev_remove_top_check(vdev_t *vd) in spa_vdev_remove_top_check() 1914 vdev_t *rvd = spa->spa_root_vdev; in spa_vdev_remove_top_check() 1917 vdev_t *cvd = rvd->vdev_child[id]; in spa_vdev_remove_top_check() [all …]
|
| H A D | vdev_label.c | 219 root_vdev_actions_getprogress(vdev_t *vd, nvlist_t *nvl) in root_vdev_actions_getprogress() 443 vdev_t *cvd = vd->vdev_child[c]; in vdev_config_generate() 518 vdev_t *rvd = spa->spa_root_vdev; in vdev_top_config_generate() 525 vdev_t *tvd = rvd->vdev_child[c]; in vdev_top_config_generate() 552 vdev_label_read_config(vdev_t *vd, uint64_t txg) in vdev_label_read_config() 1061 vdev_t *ubl_vd; /* vdev associated with the above */ 1067 vdev_t *vd = zio->io_vd; in vdev_uberblock_load_done() 1184 uberblock_t *ub, vdev_t *vd, int flags) in vdev_uberblock_sync() 1286 vdev_t *vd, int l, uint64_t txg, int flags) in vdev_label_sync() 1335 vdev_t *vd; in vdev_label_sync_list() [all …]
|
| H A D | vdev_file.c | 55 vdev_file_hold(vdev_t *vd) in vdev_file_hold() 61 vdev_file_rele(vdev_t *vd) in vdev_file_rele() 67 vdev_file_open(vdev_t *vd, uint64_t *psize, uint64_t *max_psize, in vdev_file_open() 161 vdev_file_close(vdev_t *vd) in vdev_file_close() 194 vdev_t *vd = zio->io_vd; in vdev_file_io_strategy() 229 vdev_t *vd = zio->io_vd; in vdev_file_io_start()
|
| H A D | vdev_geom.c | 54 vdev_t *vd; 148 vdev_t *vd = elem->vd; in vdev_geom_attrchanged() 166 vdev_t *vd; in vdev_geom_resize() 211 vdev_t *vd = elem->vd; in vdev_geom_orphan() 347 vdev_geom_close_locked(vdev_t *vd) in vdev_geom_close_locked() 762 vdev_geom_open_by_guids(vdev_t *vd) in vdev_geom_open_by_guids() 973 vdev_geom_close(vdev_t *vd) in vdev_geom_close() 994 vdev_t *vd; in vdev_geom_io_intr() 1052 vdev_t *vd; in vdev_geom_io_start() 1166 vdev_geom_hold(vdev_t *vd) in vdev_geom_hold() [all …]
|
| H A D | spa_checkpoint.c | 200 vdev_t *sdc_vd; 209 vdev_t *vd = sdc->sdc_vd; in spa_checkpoint_discard_sync_callback() 256 vdev_t *rvd = spa->spa_root_vdev; in spa_checkpoint_accounting_verify() 261 vdev_t *vd = rvd->vdev_child[c]; in spa_checkpoint_accounting_verify() 280 vdev_t *vd = arg; in spa_checkpoint_discard_thread_sync() 365 vdev_t *rvd = spa->spa_root_vdev; in spa_checkpoint_discard_is_done() 398 vdev_t *rvd = spa->spa_root_vdev; in spa_checkpoint_discard_thread() 401 vdev_t *vd = rvd->vdev_child[c]; in spa_checkpoint_discard_thread()
|
| H A D | spa.c | 1363 vdev_t *vd; in spa_config_parse() 2273 vdev_t **vd; in spa_try_repair() 2428 vdev_t *rvd; 4341 vdev_t *vd; 4555 vdev_t *vd; 4699 vdev_t *vd; 4724 vdev_t *rvd; 7014 vdev_t *vd; 7939 vdev_t *vd; 8355 vdev_t * [all …]
|
| H A D | trim_map.c | 100 static void trim_map_vdev_commit_done(spa_t *spa, vdev_t *vd); 141 trim_map_create(vdev_t *vd) in trim_map_create() 164 trim_map_destroy(vdev_t *vd) in trim_map_destroy() 322 trim_map_free(vdev_t *vd, uint64_t offset, uint64_t size, uint64_t txg) in trim_map_free() 337 vdev_t *vd = zio->io_vd; in trim_map_write_start() 380 vdev_t *vd = zio->io_vd; in trim_map_write_done() 427 trim_map_vdev_commit(spa_t *spa, zio_t *zio, vdev_t *vd) in trim_map_vdev_commit() 483 trim_map_vdev_commit_done(spa_t *spa, vdev_t *vd) in trim_map_vdev_commit_done() 518 trim_map_commit(spa_t *spa, zio_t *zio, vdev_t *vd) in trim_map_commit() 534 trim_map_commit_done(spa_t *spa, vdev_t *vd) in trim_map_commit_done()
|
| H A D | metaslab.c | 337 vdev_t *vd; in metaslab_class_validate() 373 vdev_t *vd; in metaslab_class_minblocksize_update() 645 vdev_t *vd = mg->mg_vd; in metaslab_group_alloc_update() 899 vdev_t *vd = mg->mg_vd; in metaslab_group_initialized() 915 vdev_t *vd = mg->mg_vd; in metaslab_group_histogram_verify() 1055 vdev_t *vd = mg->mg_vd; in metaslab_group_fragmentation() 1551 vdev_t *vd = mg->mg_vd; in metaslab_init() 3370 vdev_t *vd; in metaslab_alloc_dva() 3661 vdev_t *rbca_remap_vd; 3801 vdev_t *vd; in metaslab_unalloc_dva() [all …]
|
| H A D | zfs_fm.c | 107 const char *subclass, spa_t *spa, vdev_t *vd, zio_t *zio, in zfs_ereport_start() 258 vdev_t *pvd = vd->vdev_parent; 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 D | vdev_missing.c | 47 vdev_missing_open(vdev_t *vd, uint64_t *psize, uint64_t *max_psize, in vdev_missing_open() 65 vdev_missing_close(vdev_t *vd) in vdev_missing_close()
|
| H A D | spa_misc.c | 1033 spa_aux_add(vdev_t *vd, avl_tree_t *avl) in spa_aux_add() 1051 spa_aux_remove(vdev_t *vd, avl_tree_t *avl) in spa_aux_remove() 1138 spa_spare_add(vdev_t *vd) in spa_spare_add() 1148 spa_spare_remove(vdev_t *vd) in spa_spare_remove() 1170 spa_spare_activate(vdev_t *vd) in spa_spare_activate() 1191 spa_l2cache_add(vdev_t *vd) in spa_l2cache_add() 1201 spa_l2cache_remove(vdev_t *vd) in spa_l2cache_remove() 1223 spa_l2cache_activate(vdev_t *vd) in spa_l2cache_activate() 1836 vdev_t *vd = in spa_update_dspace() 1947 vdev_t *vd = vdev_lookup_top(spa, vdev); in dva_get_dsize_sync() [all …]
|
| /freebsd-12.1/stand/libsa/zfs/ |
| H A D | zfsimpl.c | 58 vdev_t *ic_vdev; 504 vdev_t *rs_vd; 777 vdev_t *rvd; in vdev_lookup_top() 826 vdev_t *kid; in vdev_indirect_gather_splits() 1016 vdev_t *kid; in vdev_mirror_read() 1035 vdev_t *kid; in vdev_replacing_read() 1055 vdev_t *vdev; in vdev_find() 1249 vdev_t *kid; in vdev_set_state() 1323 vdev_t *kid; in spa_get_primary_vdev() 1414 vdev_t *kid; in vdev_status() [all …]
|
| /freebsd-12.1/cddl/contrib/opensolaris/cmd/zdb/ |
| H A D | zdb.c | 659 get_dtl_refcount(vdev_t *vd) in get_dtl_refcount() 2504 vdev_t vd; in dump_label_uberblocks() 2505 vdev_t *vdp = &vd; in dump_label_uberblocks() 3025 vdev_t *vd = arg; in zdb_leak() 3096 vdev_t *vd = arg; in claim_segment_cb() 3161 vdev_t *vd; in increment_indirect_mapping_cb() 3212 vdev_t *cseea_vd; 4218 vdev_t *vcsec_vd; 4553 mos_leak_vdev(vdev_t *vd) in mos_leak_vdev() 4888 static vdev_t * [all …]
|