Home
last modified time | relevance | path

Searched refs:tvd (Results 1 – 12 of 12) sorted by relevance

/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dvdev_trim.c179 vdev_autotrim_should_stop(vdev_t *tvd) in vdev_autotrim_should_stop() argument
182 !vdev_writeable(tvd) || tvd->vdev_removing || in vdev_autotrim_should_stop()
1395 vdev_t *tvd = root_vd->vdev_child[i]; in vdev_autotrim() local
1398 if (vdev_writeable(tvd) && !tvd->vdev_removing && in vdev_autotrim()
1400 ASSERT3P(tvd->vdev_top, ==, tvd); in vdev_autotrim()
1407 mutex_exit(&tvd->vdev_autotrim_lock); in vdev_autotrim()
1416 vdev_autotrim_stop_wait(vdev_t *tvd) in vdev_autotrim_stop_wait() argument
1418 mutex_enter(&tvd->vdev_autotrim_lock); in vdev_autotrim_stop_wait()
1423 cv_wait(&tvd->vdev_autotrim_cv, in vdev_autotrim_stop_wait()
1424 &tvd->vdev_autotrim_lock); in vdev_autotrim_stop_wait()
[all …]
H A Dvdev.c967 ASSERT(tvd == tvd->vdev_top); in vdev_top_transfer()
979 if (tvd->vdev_mg) in vdev_top_transfer()
988 tvd->vdev_mg->mg_vd = tvd; in vdev_top_transfer()
1064 vd->vdev_top = tvd; in vdev_top_update()
3253 vdev_t *vd, *tvd; in vdev_fault() local
3263 tvd = vd->vdev_top; in vdev_fault()
3292 vdev_reopen(tvd); in vdev_fault()
3371 vdev_reopen(tvd); in vdev_online()
3425 vdev_t *vd, *tvd; in vdev_offline_locked() local
3440 mg = tvd->vdev_mg; in vdev_offline_locked()
[all …]
H A Dspa_config.c539 vdev_t *tvd = rvd->vdev_child[c]; in spa_config_update() local
548 if (!vdev_is_concrete(tvd) || in spa_config_update()
549 (tvd->vdev_islog && tvd->vdev_removing)) in spa_config_update()
552 if (tvd->vdev_ms_array == 0) in spa_config_update()
553 vdev_metaslab_set_size(tvd); in spa_config_update()
554 vdev_expand(tvd, txg); in spa_config_update()
H A Dspa.c1591 vdev_t *vd, *tvd; in spa_load_spares() local
1616 spa_spare_remove(tvd); in spa_load_spares()
1658 spa_spare_add(tvd); in spa_load_spares()
1946 if (tvd->vdev_islog && in spa_check_for_missing_logs()
1974 if (tvd->vdev_islog && in spa_check_for_missing_logs()
2025 if (tvd->vdev_islog) { in spa_passivate_log()
2045 if (tvd->vdev_islog) in spa_activate_log()
6104 vdev_t *vd, *tvd; local
6382 tvd = newvd->vdev_top;
6627 tvd = cvd->vdev_top;
[all …]
H A Ddsl_scan.c1238 vdev_t *tvd = rvd->vdev_child[i]; in dsl_scan_should_clear() local
1241 mutex_enter(&tvd->vdev_scan_io_queue_lock); in dsl_scan_should_clear()
1242 queue = tvd->vdev_scan_io_queue; in dsl_scan_should_clear()
1248 mutex_exit(&tvd->vdev_scan_io_queue_lock); in dsl_scan_should_clear()
4087 mutex_enter(&tvd->vdev_scan_io_queue_lock); in dsl_scan_io_queue_vdev_xfer()
4092 if (tvd->vdev_scan_io_queue != NULL) in dsl_scan_io_queue_vdev_xfer()
4093 tvd->vdev_scan_io_queue->q_vd = tvd; in dsl_scan_io_queue_vdev_xfer()
4095 mutex_exit(&tvd->vdev_scan_io_queue_lock); in dsl_scan_io_queue_vdev_xfer()
4105 vdev_t *tvd = rvd->vdev_child[i]; in scan_io_queues_destroy() local
4108 if (tvd->vdev_scan_io_queue != NULL) in scan_io_queues_destroy()
[all …]
H A Dmetaslab.c488 vdev_t *tvd = rvd->vdev_child[c]; in metaslab_class_histogram_verify() local
489 metaslab_group_t *mg = tvd->vdev_mg; in metaslab_class_histogram_verify()
495 if (!vdev_is_concrete(tvd) || tvd->vdev_ms_shift == 0 || in metaslab_class_histogram_verify()
526 vdev_t *tvd = rvd->vdev_child[c]; in metaslab_class_fragmentation() local
527 metaslab_group_t *mg = tvd->vdev_mg; in metaslab_class_fragmentation()
533 if (!vdev_is_concrete(tvd) || tvd->vdev_ms_shift == 0 || in metaslab_class_fragmentation()
576 vdev_t *tvd = rvd->vdev_child[c]; in metaslab_class_expandable_space() local
577 metaslab_group_t *mg = tvd->vdev_mg; in metaslab_class_expandable_space()
579 if (!vdev_is_concrete(tvd) || tvd->vdev_ms_shift == 0 || in metaslab_class_expandable_space()
590 tspace = tvd->vdev_max_asize - tvd->vdev_asize; in metaslab_class_expandable_space()
[all …]
H A Dvdev_raidz.c1683 vdev_t *tvd = vd->vdev_top; in vdev_raidz_dumpio() local
1719 rm = vdev_raidz_map_alloc(zio, tvd->vdev_ashift, vd->vdev_children, in vdev_raidz_dumpio()
1801 vdev_t *tvd = vd->vdev_top; in vdev_raidz_io_verify() local
1822 rc->rc_size + (1 << tvd->vdev_ashift)); in vdev_raidz_io_verify()
1850 vdev_t *tvd = vd->vdev_top; in vdev_raidz_io_start() local
1856 rm = vdev_raidz_map_alloc(zio, tvd->vdev_ashift, vd->vdev_children, in vdev_raidz_io_start()
1894 1 << tvd->vdev_ashift, in vdev_raidz_io_start()
H A Dvdev_label.c710 vdev_t *tvd = rvd->vdev_child[c]; in vdev_top_config_generate() local
712 if (tvd->vdev_ishole) { in vdev_top_config_generate()
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Ddsl_scan.h184 void dsl_scan_io_queue_vdev_xfer(vdev_t *svd, vdev_t *tvd);
/illumos-gate/usr/src/cmd/ztest/
H A Dztest.c1147 vdev_t *tvd; in ztest_random_vdev_top() local
1153 tvd = rvd->vdev_child[top]; in ztest_random_vdev_top()
1154 } while (!vdev_is_concrete(tvd) || (tvd->vdev_islog && !log_ok) || in ztest_random_vdev_top()
1155 tvd->vdev_mg == NULL || tvd->vdev_mg->mg_class == NULL); in ztest_random_vdev_top()
3149 vdev_t *tvd = rvd->vdev_child[c]; in ztest_split_pool() local
3153 if (tvd->vdev_islog || tvd->vdev_ops == &vdev_hole_ops) { in ztest_split_pool()
3506 vdev_t *tvd = vd->vdev_top; in online_vdev() local
3588 vdev_t *vd, *tvd; in ztest_vdev_LUN_growth() local
3615 mg = tvd->vdev_mg; in ztest_vdev_LUN_growth()
3617 old_ms_count = tvd->vdev_ms_count; in ztest_vdev_LUN_growth()
[all …]
/illumos-gate/usr/src/boot/sys/cddl/boot/zfs/
H A Dzfssubr.c1560 vdev_t *tvd = vd->v_top; in vdev_raidz_read() local
1577 rm = vdev_raidz_map_alloc(data, offset, bytes, tvd->v_ashift, in vdev_raidz_read()
/illumos-gate/usr/src/cmd/zdb/
H A Dzdb.c1006 vdev_t *tvd = rvd->vdev_child[c]; in dump_metaslab_groups() local
1007 metaslab_group_t *mg = tvd->vdev_mg; in dump_metaslab_groups()
1017 (u_longlong_t)tvd->vdev_id, in dump_metaslab_groups()
1018 (u_longlong_t)tvd->vdev_ms_count); in dump_metaslab_groups()