Searched refs:vdev_t (Results 1 - 25 of 51) sorted by relevance

123

/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Dvdev.h52 extern void vdev_dbgmsg(vdev_t *vd, const char *fmt, ...);
53 extern void vdev_dbgmsg_print_tree(vdev_t *, int);
54 extern int vdev_open(vdev_t *);
55 extern void vdev_open_children(vdev_t *);
56 extern boolean_t vdev_uses_zvols(vdev_t *);
57 extern int vdev_validate(vdev_t *);
58 extern int vdev_copy_path_strict(vdev_t *, vdev_t *);
59 extern void vdev_copy_path_relaxed(vdev_t *, vdev_t *);
[all...]
H A Dvdev_initialize.h35 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 Dvdev_trim.h37 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);
H A Dvdev_impl.h72 typedef int vdev_open_func_t(vdev_t *vd, uint64_t *size, uint64_t *max_size,
74 typedef void vdev_close_func_t(vdev_t *vd);
75 typedef uint64_t vdev_asize_func_t(vdev_t *vd, uint64_t psize);
78 typedef void vdev_state_change_func_t(vdev_t *vd, int, int);
79 typedef boolean_t vdev_need_resilver_func_t(vdev_t *vd, uint64_t, size_t);
80 typedef void vdev_hold_func_t(vdev_t *vd);
81 typedef void vdev_rele_func_t(vdev_t *vd);
83 typedef void vdev_remap_cb_t(uint64_t inner_offset, vdev_t *vd,
85 typedef void vdev_remap_func_t(vdev_t *vd, uint64_t offset, uint64_t size,
87 typedef int vdev_dumpio_func_t(vdev_t *v
[all...]
H A Duberblock.h43 extern boolean_t uberblock_update(uberblock_t *ub, vdev_t *rvd, uint64_t txg,
H A Dmetaslab.h88 void metaslab_free_concrete(vdev_t *, uint64_t, uint64_t, boolean_t);
90 void metaslab_free_impl_cb(uint64_t, vdev_t *, uint64_t, uint64_t, void *);
93 int metaslab_claim_impl(vdev_t *, uint64_t, uint64_t, uint64_t);
116 void metaslab_space_update(vdev_t *, metaslab_class_t *,
119 metaslab_group_t *metaslab_group_create(metaslab_class_t *, vdev_t *, int);
H A Dspa.h56 typedef struct vdev vdev_t; typedef in typeref:struct:vdev
820 extern void spa_spare_add(vdev_t *vd);
821 extern void spa_spare_remove(vdev_t *vd);
823 extern void spa_spare_activate(vdev_t *vd);
829 extern void spa_l2cache_add(vdev_t *vd);
830 extern void spa_l2cache_remove(vdev_t *vd);
832 extern void spa_l2cache_activate(vdev_t *vd);
858 extern nvlist_t *spa_config_generate(spa_t *spa, vdev_t *vd, uint64_t txg,
921 extern void spa_vdev_config_exit(spa_t *spa, vdev_t *vd, uint64_t txg,
923 extern int spa_vdev_exit(spa_t *spa, vdev_t *v
[all...]
H A Dzio.h459 vdev_t *io_vd;
509 extern zio_t *zio_null(zio_t *pio, spa_t *spa, vdev_t *vd,
539 extern zio_t *zio_ioctl(zio_t *pio, spa_t *spa, vdev_t *vd, int cmd,
542 extern zio_t *zio_trim(zio_t *pio, vdev_t *vd, uint64_t offset, uint64_t size,
546 extern zio_t *zio_read_phys(zio_t *pio, vdev_t *vd, uint64_t offset,
551 extern zio_t *zio_write_phys(zio_t *pio, vdev_t *vd, uint64_t offset,
562 extern void zio_flush(zio_t *zio, vdev_t *vd);
588 extern zio_t *zio_vdev_child_io(zio_t *zio, blkptr_t *bp, vdev_t *vd,
593 extern zio_t *zio_vdev_delegated_io(vdev_t *vd, uint64_t offset,
637 extern int zio_handle_device_injection(vdev_t *v
[all...]
H A Ddsl_scan.h167 void dsl_scan_assess_vdev(struct dsl_pool *dp, vdev_t *vd);
184 void dsl_scan_io_queue_vdev_xfer(vdev_t *svd, vdev_t *tvd);
H A Dvdev_removal.h82 extern void free_from_removing_vdev(vdev_t *, uint64_t, uint64_t);
H A Dmmp.h52 vdev_t *mmp_last_leaf; /* last mmp write sent here */
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dvdev_root.c42 vdev_root_core_tvds(vdev_t *vd)
47 vdev_t *cvd = vd->vdev_child[c];
68 too_many_errors(vdev_t *vd, uint64_t numerrors)
85 vdev_root_open(vdev_t *vd, uint64_t *asize, uint64_t *max_asize,
100 vdev_t *cvd = vd->vdev_child[c];
124 vdev_root_close(vdev_t *vd)
131 vdev_root_state_change(vdev_t *vd, int faulted, int degraded)
H A Dvdev.c118 vdev_dbgmsg(vdev_t *vd, const char *fmt, ...)
139 vdev_dbgmsg_print_tree(vdev_t *vd, int indent)
225 vdev_default_xlate(vdev_t *vd, const range_seg64_t *in, range_seg64_t *res)
236 vdev_default_asize(vdev_t *vd, uint64_t psize)
256 vdev_get_min_asize(vdev_t *vd)
258 vdev_t *pvd = vd->vdev_parent;
286 vdev_set_min_asize(vdev_t *vd)
294 vdev_t *
297 vdev_t *rvd = spa->spa_root_vdev;
309 vdev_t *
[all...]
H A Dvdev_missing.c48 vdev_missing_open(vdev_t *vd, uint64_t *psize, uint64_t *max_psize,
65 vdev_missing_close(vdev_t *vd)
H A Dvdev_initialize.c48 vdev_initialize_should_stop(vdev_t *vd)
58 * We pass in the guid instead of the vdev_t since the vdev may
69 vdev_t *vd = spa_lookup_by_guid(tx->tx_pool->dp_spa, guid, B_FALSE);
100 vdev_initialize_change_state(vdev_t *vd, vdev_initializing_state_t new_state)
154 vdev_t *vd = zio->io_vd;
186 vdev_initialize_write(vdev_t *vd, uint64_t start, uint64_t size, abd_t *data)
279 vdev_initialize_ranges(vdev_t *vd, abd_t *data)
309 vdev_initialize_calculate_progress(vdev_t *vd)
387 vdev_initialize_load(vdev_t *vd)
418 vdev_t *v
[all...]
H A Dspa_checkpoint.c200 vdev_t *sdc_vd;
209 vdev_t *vd = sdc->sdc_vd;
256 vdev_t *rvd = spa->spa_root_vdev;
261 vdev_t *vd = rvd->vdev_child[c];
280 vdev_t *vd = arg;
365 vdev_t *rvd = spa->spa_root_vdev;
398 vdev_t *rvd = spa->spa_root_vdev;
401 vdev_t *vd = rvd->vdev_child[c];
H A Dvdev_trim.c149 vdev_t *trim_vdev; /* Leaf vdev to TRIM */
168 vdev_trim_should_stop(vdev_t *vd)
178 vdev_autotrim_should_stop(vdev_t *tvd)
193 * We pass in the guid instead of the vdev_t since the vdev may
204 vdev_t *vd = spa_lookup_by_guid(tx->tx_pool->dp_spa, guid, B_FALSE);
269 vdev_trim_change_state(vdev_t *vd, vdev_trim_state_t new_state,
360 vdev_t *vd = zio->io_vd;
406 vdev_t *vd = zio->io_vd;
450 vdev_t *vd = ta->trim_vdev;
496 * We know the vdev_t wil
[all...]
H A Dvdev_removal.c187 spa_vdev_removal_create(vdev_t *vd)
238 vdev_t *vd = vdev_lookup_top(spa, vdev_id);
394 vdev_t *vd = vdev_lookup_top(spa,
422 vdev_t *vd = vdev_lookup_top(spa, indirect_vdev_id);
477 free_from_removing_vdev(vdev_t *vd, uint64_t offset, uint64_t size)
671 vdev_t *vd = vdev_lookup_top(spa, svr->svr_vdev_id);
675 vdev_t *pvd = vdev_lookup_top(spa,
697 vdev_t *vd = arg;
714 vdev_t *vd = vdev_lookup_top(spa, svr->svr_vdev_id);
862 vdev_t *source_v
[all...]
H A Dvdev_indirect.c235 vdev_t *ic_vdev;
260 vdev_t *is_vdev; /* top-level vdev */
324 vdev_indirect_mark_obsolete(vdev_t *vd, uint64_t offset, uint64_t size)
344 * wrapper is provided because the DMU does not know about vdev_t's and
351 vdev_t *vd = vdev_lookup_top(spa, vdev_id);
392 vdev_indirect_should_condense(vdev_t *vd)
485 vdev_t *vd = vdev_lookup_top(spa, scip->scip_vdev);
592 spa_condense_indirect_generate_new_mapping(vdev_t *vd,
650 vdev_t *vd;
753 spa_condense_indirect_start_sync(vdev_t *v
[all...]
H A Dvdev_label.c185 vdev_label_read(zio_t *zio, vdev_t *vd, int l, abd_t *buf, uint64_t offset,
200 vdev_label_write(zio_t *zio, vdev_t *vd, int l, abd_t *buf, uint64_t offset,
218 vdev_config_generate_stats(vdev_t *vd, nvlist_t *nv)
378 root_vdev_actions_getprogress(vdev_t *vd, nvlist_t *nvl)
412 vdev_config_generate(spa_t *spa, vdev_t *vd, boolean_t getstats,
626 vdev_t *cvd = vd->vdev_child[c];
701 vdev_t *rvd = spa->spa_root_vdev;
708 vdev_t *tvd = rvd->vdev_child[c];
735 vdev_label_read_config(vdev_t *vd, uint64_t txg)
818 vdev_inuse(vdev_t *v
[all...]
H A Duberblock.c48 uberblock_update(uberblock_t *ub, vdev_t *rvd, uint64_t txg, uint64_t mmp_delay)
H A Dvdev_disk.c60 static void vdev_disk_close(vdev_t *);
96 vdev_disk_alloc(vdev_t *vd)
109 vdev_disk_free(vdev_t *vd)
135 vdev_t *vd = (vdev_t *)arg;
166 vdev_t *vd = (vdev_t *)arg;
194 vdev_t *vd = (vdev_t *)arg;
216 vdev_disk_hold(vdev_t *v
[all...]
H A Dspa.c278 vdev_t *rvd = spa->spa_root_vdev;
831 vdev_t *rvd = spa->spa_root_vdev;
858 vdev_t *rvd = spa->spa_root_vdev;
1199 list_create(&spa->spa_config_dirty_list, sizeof (vdev_t),
1200 offsetof(vdev_t, vdev_config_dirty_node));
1203 list_create(&spa->spa_state_dirty_list, sizeof (vdev_t),
1204 offsetof(vdev_t, vdev_state_dirty_node));
1320 spa_config_parse(spa_t *spa, vdev_t **vdp, nvlist_t *nv, vdev_t *parent,
1346 vdev_t *v
[all...]
H A Dvdev_file.c45 vdev_file_hold(vdev_t *vd)
51 vdev_file_rele(vdev_t *vd)
57 vdev_file_open(vdev_t *vd, uint64_t *psize, uint64_t *max_psize,
148 vdev_file_close(vdev_t *vd)
218 vdev_t *vd = zio->io_vd;
H A Dvdev_mirror.c105 vdev_t *mc_vd;
180 vdev_mirror_load(mirror_map_t *mm, vdev_t *vd, uint64_t zio_offset)
248 vdev_t *vd = zio->io_vd;
357 vdev_mirror_open(vdev_t *vd, uint64_t *asize, uint64_t *max_asize,
371 vdev_t *cvd = vd->vdev_child[c];
396 vdev_mirror_close(vdev_t *vd)
768 vdev_mirror_state_change(vdev_t *vd, int faulted, int degraded)
786 vdev_mirror_dumpio(vdev_t *vd, caddr_t data, size_t size,
793 vdev_t *cvd = vd->vdev_child[c];

Completed in 73 milliseconds

123