/netbsd/external/cddl/osnet/dist/uts/common/fs/zfs/sys/ |
H A D | vdev.h | 51 extern int vdev_open(vdev_t *); 52 extern void vdev_open_children(vdev_t *); 55 extern void vdev_close(vdev_t *); 57 extern void vdev_reopen(vdev_t *); 58 extern int vdev_validate_aux(vdev_t *vd); 63 extern vdev_t *vdev_lookup_by_guid(vdev_t *vd, uint64_t guid); 80 extern void vdev_hold(vdev_t *); 81 extern void vdev_rele(vdev_t *); 88 extern void vdev_split(vdev_t *vd); 89 extern void vdev_deadman(vdev_t *vd); [all …]
|
H A D | vdev_impl.h | 64 typedef void vdev_close_func_t(vdev_t *vd); 69 typedef void vdev_hold_func_t(vdev_t *vd); 70 typedef void vdev_rele_func_t(vdev_t *vd); 116 vdev_t *vq_vdev; 334 extern void vdev_free(vdev_t *vd); 339 extern void vdev_add_child(vdev_t *pvd, vdev_t *cvd); 340 extern void vdev_remove_child(vdev_t *pvd, vdev_t *cvd); 342 extern vdev_t *vdev_add_parent(vdev_t *cvd, vdev_ops_t *ops); 348 extern void vdev_load_log_state(vdev_t *nvd, vdev_t *ovd); 350 extern void vdev_load(vdev_t *vd); [all …]
|
H A D | zio.h | 462 vdev_t *io_vd; 510 extern zio_t *zio_null(zio_t *pio, spa_t *spa, vdev_t *vd, 540 extern zio_t *zio_ioctl(zio_t *pio, spa_t *spa, vdev_t *vd, int cmd, 544 extern zio_t *zio_read_phys(zio_t *pio, vdev_t *vd, uint64_t offset, 549 extern zio_t *zio_write_phys(zio_t *pio, vdev_t *vd, uint64_t offset, 560 extern void zio_flush(zio_t *zio, vdev_t *vd); 561 extern zio_t *zio_trim(zio_t *zio, spa_t *spa, vdev_t *vd, uint64_t offset, 589 extern zio_t *zio_vdev_child_io(zio_t *zio, blkptr_t *bp, vdev_t *vd, 594 extern zio_t *zio_vdev_delegated_io(vdev_t *vd, uint64_t offset, 634 extern int zio_handle_device_injection(vdev_t *vd, zio_t *zio, int error); [all …]
|
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 | spa.h | 48 typedef struct vdev vdev_t; typedef 683 extern void spa_spare_add(vdev_t *vd); 684 extern void spa_spare_remove(vdev_t *vd); 686 extern void spa_spare_activate(vdev_t *vd); 689 extern void spa_l2cache_add(vdev_t *vd); 690 extern void spa_l2cache_remove(vdev_t *vd); 692 extern void spa_l2cache_activate(vdev_t *vd); 836 extern vdev_t *spa_lookup_by_guid(spa_t *spa, uint64_t guid, 873 extern void zfs_post_remove(spa_t *spa, vdev_t *vd); 874 extern void zfs_post_state_change(spa_t *spa, vdev_t *vd); [all …]
|
H A D | arc.h | 191 void l2arc_add_vdev(spa_t *spa, vdev_t *vd); 192 void l2arc_remove_vdev(vdev_t *vd); 193 boolean_t l2arc_vdev_present(vdev_t *vd);
|
H A D | spa_impl.h | 72 vdev_t **sav_vdevs; /* devices */ 164 vdev_t *spa_root_vdev; /* top-level vdev container */ 225 vdev_t *spa_pending_vdev; /* pending vdev additions */
|
H A D | uberblock.h | 43 extern boolean_t uberblock_update(uberblock_t *, vdev_t *, uint64_t);
|
/netbsd/external/cddl/osnet/dist/uts/common/fs/zfs/ |
H A D | vdev.c | 248 vdev_t * 263 vdev_t * 300 vdev_add_child(vdev_t *pvd, vdev_t *cvd) in vdev_add_child() 341 vdev_remove_child(vdev_t *pvd, vdev_t *cvd) in vdev_remove_child() 407 vdev_t * 410 vdev_t *vd; in vdev_alloc_common() 475 vdev_t *vd; in vdev_alloc() 792 vdev_top_transfer(vdev_t *svd, vdev_t *tvd) in vdev_top_transfer() 857 vdev_top_update(vdev_t *tvd, vdev_t *vd) in vdev_top_update() 871 vdev_t * [all …]
|
H A D | vdev_root.c | 50 too_many_errors(vdev_t *vd, int numerrors) in too_many_errors() 57 vdev_root_open(vdev_t *vd, uint64_t *asize, uint64_t *max_asize, in vdev_root_open() 71 vdev_t *cvd = vd->vdev_child[c]; in vdev_root_open() 93 vdev_root_close(vdev_t *vd) in vdev_root_close() 100 vdev_root_state_change(vdev_t *vd, int faulted, int degraded) in vdev_root_state_change()
|
H A D | vdev_label.c | 340 vdev_t *cvd = vd->vdev_child[c]; in vdev_config_generate() 415 vdev_t *rvd = spa->spa_root_vdev; in vdev_top_config_generate() 422 vdev_t *tvd = rvd->vdev_child[c]; in vdev_top_config_generate() 448 vdev_label_read_config(vdev_t *vd, uint64_t txg) in vdev_label_read_config() 692 for (vdev_t *pvd = vd; pvd != NULL; pvd = pvd->vdev_parent) in vdev_label_init() 946 vdev_t *ubl_vd; /* vdev associated with the above */ 952 vdev_t *vd = zio->io_vd; in vdev_uberblock_load_done() 980 vdev_uberblock_load_impl(zio_t *zio, vdev_t *vd, int flags, in vdev_uberblock_load_impl() 1199 vdev_t *vd; in vdev_label_sync_list() 1249 vdev_config_sync(vdev_t **svd, int svdcount, uint64_t txg) in vdev_config_sync() [all …]
|
H A D | vdev_geom.c | 91 vdev_t *vd; in vdev_geom_set_physpath() 133 vdev_t *vd; in vdev_geom_attrchanged() 155 vdev_t *vd; in vdev_geom_orphan() 292 vdev_t *vd; in vdev_geom_detach() 324 vdev_geom_close_locked(vdev_t *vd) in vdev_geom_close_locked() 709 vdev_geom_open_by_guids(vdev_t *vd) in vdev_geom_open_by_guids() 904 vdev_geom_close(vdev_t *vd) in vdev_geom_close() 920 vdev_t *vd; in vdev_geom_io_intr() 969 vdev_t *vd; in vdev_geom_io_start() 1057 vdev_geom_hold(vdev_t *vd) in vdev_geom_hold() [all …]
|
H A D | vdev_file.c | 39 vdev_file_hold(vdev_t *vd) in vdev_file_hold() 45 vdev_file_rele(vdev_t *vd) in vdev_file_rele() 51 vdev_file_open(vdev_t *vd, uint64_t *psize, uint64_t *max_psize, in vdev_file_open() 143 vdev_file_close(vdev_t *vd) in vdev_file_close() 163 vdev_t *vd = zio->io_vd; in vdev_file_io_start()
|
H A D | vdev_disk.c | 57 vdev_disk_alloc(vdev_t *vd) in vdev_disk_alloc() 74 vdev_disk_free(vdev_t *vd) in vdev_disk_free() 105 vdev_disk_hold(vdev_t *vd) in vdev_disk_hold() 113 vdev_disk_rele(vdev_t *vd) in vdev_disk_rele() 141 vdev_disk_open(vdev_t *vd, uint64_t *psize, uint64_t *max_psize, in vdev_disk_open() 306 vdev_disk_close(vdev_t *vd) in vdev_disk_close() 356 vdev_disk_physio(vdev_t *vd, caddr_t data, in vdev_disk_physio() 431 vdev_t *vd = zio->io_vd; in vdev_disk_io_start() 534 vdev_t *vd = zio->io_vd; in vdev_disk_io_done()
|
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() 383 vdev_t *vd = zio->io_vd; in trim_map_write_done() 430 trim_map_vdev_commit(spa_t *spa, zio_t *zio, vdev_t *vd) in trim_map_vdev_commit() 486 trim_map_vdev_commit_done(spa_t *spa, vdev_t *vd) in trim_map_vdev_commit_done() 521 trim_map_commit(spa_t *spa, zio_t *zio, vdev_t *vd) in trim_map_commit() 537 trim_map_commit_done(spa_t *spa, vdev_t *vd) in trim_map_commit_done()
|
H A D | spa.c | 1262 vdev_t *vd; in spa_config_parse() 1682 spa_config_valid_zaps(vdev_t *vd, vdev_t *mvd) in spa_config_valid_zaps() 2136 vdev_t **vd; in spa_try_repair() 2305 vdev_t *rvd; in spa_load_impl() 3344 vdev_t *vd; in spa_add_l2cache() 3516 vdev_t *vd; in spa_validate_aux_devs() 3660 vdev_t *vd; in spa_l2cache_drop() 5759 vdev_t *vd; in spa_vdev_remove() 5991 vdev_t *vd; in spa_vdev_set_common() 6848 vdev_t *vd; in spa_sync() [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_mirror.c | 41 vdev_t *mc_vd; 151 vdev_mirror_load(mirror_map_t *mm, vdev_t *vd, uint64_t zio_offset) in vdev_mirror_load() 206 vdev_t *vd = zio->io_vd; in vdev_mirror_map_init() 237 vdev_mirror_open(vdev_t *vd, uint64_t *asize, uint64_t *max_asize, in vdev_mirror_open() 251 vdev_t *cvd = vd->vdev_child[c]; in vdev_mirror_open() 275 vdev_mirror_close(vdev_t *vd) in vdev_mirror_close() 628 vdev_mirror_state_change(vdev_t *vd, int faulted, int degraded) in vdev_mirror_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 | 1040 spa_aux_add(vdev_t *vd, avl_tree_t *avl) in spa_aux_add() 1058 spa_aux_remove(vdev_t *vd, avl_tree_t *avl) in spa_aux_remove() 1103 spa_aux_activate(vdev_t *vd, avl_tree_t *avl) in spa_aux_activate() 1145 spa_spare_add(vdev_t *vd) in spa_spare_add() 1155 spa_spare_remove(vdev_t *vd) in spa_spare_remove() 1177 spa_spare_activate(vdev_t *vd) in spa_spare_activate() 1198 spa_l2cache_add(vdev_t *vd) in spa_l2cache_add() 1208 spa_l2cache_remove(vdev_t *vd) in spa_l2cache_remove() 1230 spa_l2cache_activate(vdev_t *vd) in spa_l2cache_activate() 1382 spa_vdev_state_exit(spa_t *spa, vdev_t *vd, int error) in spa_vdev_state_exit() [all …]
|
H A D | metaslab.c | 300 vdev_t *vd; in metaslab_class_validate() 336 vdev_t *vd; in metaslab_class_minblocksize_update() 590 vdev_t *vd = mg->mg_vd; in metaslab_group_alloc_update() 772 vdev_t *vd = mg->mg_vd; in metaslab_group_initialized() 788 vdev_t *vd = mg->mg_vd; in metaslab_group_histogram_verify() 920 vdev_t *vd = mg->mg_vd; in metaslab_group_fragmentation() 1472 vdev_t *vd = mg->mg_vd; in metaslab_init() 1699 vdev_t *vd = mg->mg_vd; in metaslab_space_weight() 3001 vdev_t *vd; in metaslab_alloc_dva() 3216 vdev_t *vd; in metaslab_free_dva() [all …]
|
H A D | vdev_cache.c | 227 vdev_t *vd = fio->io_vd; in vdev_cache_fill() 377 vdev_cache_purge(vdev_t *vd) in vdev_cache_purge() 389 vdev_cache_init(vdev_t *vd) in vdev_cache_init() 405 vdev_cache_fini(vdev_t *vd) in vdev_cache_fini()
|
H A D | spa_config.c | 379 spa_config_generate(spa_t *spa, vdev_t *vd, uint64_t txg, int getstats) in spa_config_generate() 382 vdev_t *rvd = spa->spa_root_vdev; in spa_config_generate() 524 vdev_t *rvd = spa->spa_root_vdev; in spa_config_update() 543 vdev_t *tvd = rvd->vdev_child[c]; in spa_config_update()
|
H A D | vdev_raidz.c | 1490 vdev_t *cvd; in vdev_raidz_open() 1534 vdev_raidz_close(vdev_t *vd) in vdev_raidz_close() 1608 vdev_t *tvd = vd->vdev_top; in vdev_raidz_physio() 1609 vdev_t *cvd; in vdev_raidz_physio() 1691 vdev_raidz_asize(vdev_t *vd, uint64_t psize) in vdev_raidz_asize() 1735 vdev_t *vd = zio->io_vd; in vdev_raidz_io_start() 1736 vdev_t *tvd = vd->vdev_top; in vdev_raidz_io_start() 1737 vdev_t *cvd; in vdev_raidz_io_start() 1846 vdev_t *vd = zio->io_vd->vdev_child[rc->rc_devidx]; in raidz_checksum_error() 2123 vdev_t *vd = zio->io_vd; in vdev_raidz_io_done() [all …]
|
H A D | vdev_queue.c | 359 vdev_queue_init(vdev_t *vd) in vdev_queue_init() 396 vdev_queue_fini(vdev_t *vd) in vdev_queue_fini() 938 vdev_queue_length(vdev_t *vd) in vdev_queue_length() 944 vdev_queue_lastoffset(vdev_t *vd) in vdev_queue_lastoffset() 950 vdev_queue_register_lastoffset(vdev_t *vd, zio_t *zio) in vdev_queue_register_lastoffset()
|