/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | vdev_trim.c | 180 vdev_autotrim_should_stop(vdev_t *tvd) in vdev_autotrim_should_stop() argument 182 return (tvd->vdev_autotrim_exit_wanted || in vdev_autotrim_should_stop() 183 !vdev_writeable(tvd) || tvd->vdev_removing || in vdev_autotrim_should_stop() 184 tvd->vdev_rz_expanding || in vdev_autotrim_should_stop() 185 spa_get_autotrim(tvd->vdev_spa) == SPA_AUTOTRIM_OFF); in vdev_autotrim_should_stop() 1504 vdev_t *tvd = root_vd->vdev_child[i]; in vdev_autotrim() local 1506 mutex_enter(&tvd->vdev_autotrim_lock); in vdev_autotrim() 1507 if (vdev_writeable(tvd) && !tvd->vdev_removing && in vdev_autotrim() 1508 tvd->vdev_autotrim_thread == NULL && in vdev_autotrim() 1509 !tvd->vdev_rz_expanding) { in vdev_autotrim() [all …]
|
H A D | vdev.c | 1216 vdev_top_transfer(vdev_t *svd, vdev_t *tvd) in vdev_top_transfer() argument 1223 ASSERT(tvd == tvd->vdev_top); in vdev_top_transfer() 1225 tvd->vdev_ms_array = svd->vdev_ms_array; in vdev_top_transfer() 1226 tvd->vdev_ms_shift = svd->vdev_ms_shift; in vdev_top_transfer() 1227 tvd->vdev_ms_count = svd->vdev_ms_count; in vdev_top_transfer() 1228 tvd->vdev_top_zap = svd->vdev_top_zap; in vdev_top_transfer() 1235 if (tvd->vdev_mg) in vdev_top_transfer() 1236 ASSERT3P(tvd->vdev_mg, ==, svd->vdev_mg); in vdev_top_transfer() 1237 if (tvd->vdev_log_mg) in vdev_top_transfer() 1238 ASSERT3P(tvd->vdev_log_mg, ==, svd->vdev_log_mg); in vdev_top_transfer() [all …]
|
H A D | spa_config.c | 587 vdev_t *tvd = rvd->vdev_child[c]; in spa_config_update() local 596 if (!vdev_is_concrete(tvd) || in spa_config_update() 597 (tvd->vdev_islog && tvd->vdev_removing)) in spa_config_update() 600 if (tvd->vdev_ms_array == 0) in spa_config_update() 601 vdev_metaslab_set_size(tvd); in spa_config_update() 602 vdev_expand(tvd, txg); in spa_config_update()
|
H A D | vdev_rebuild.c | 1132 vdev_rebuild_get_stats(vdev_t *tvd, vdev_rebuild_stat_t *vrs) in vdev_rebuild_get_stats() argument 1134 spa_t *spa = tvd->vdev_spa; in vdev_rebuild_get_stats() 1139 if (tvd != tvd->vdev_top || tvd->vdev_top_zap == 0) in vdev_rebuild_get_stats() 1143 tvd->vdev_top_zap, VDEV_TOP_ZAP_VDEV_REBUILD_PHYS); in vdev_rebuild_get_stats() 1150 vdev_rebuild_t *vr = &tvd->vdev_rebuild_config; in vdev_rebuild_get_stats() 1153 mutex_enter(&tvd->vdev_rebuild_lock); in vdev_rebuild_get_stats() 1168 mutex_exit(&tvd->vdev_rebuild_lock); in vdev_rebuild_get_stats()
|
H A D | spa.c | 2212 vdev_t *vd, *tvd; in spa_load_spares() local 2236 if ((tvd = spa_lookup_by_guid(spa, vd->vdev_guid, in spa_load_spares() 2237 B_FALSE)) != NULL && tvd->vdev_isspare) in spa_load_spares() 2238 spa_spare_remove(tvd); in spa_load_spares() 2277 if ((tvd = spa_lookup_by_guid(spa, vd->vdev_guid, in spa_load_spares() 2279 if (!tvd->vdev_isspare) in spa_load_spares() 2280 spa_spare_add(tvd); in spa_load_spares() 2295 if (!vdev_is_dead(tvd)) in spa_load_spares() 2296 spa_spare_activate(tvd); in spa_load_spares() 2564 vdev_t *tvd = rvd->vdev_child[c]; in spa_check_for_missing_logs() local [all …]
|
H A D | vdev_draid.c | 2405 vdev_t *tvd = vds->vds_draid_vdev; in vdev_draid_spare_get_child() local 2406 vdev_draid_config_t *vdc = tvd->vdev_tsd; in vdev_draid_spare_get_child() 2408 ASSERT3P(tvd->vdev_ops, ==, &vdev_draid_ops); in vdev_draid_spare_get_child() 2418 (tvd->vdev_children - 1) - vds->vds_spare_id); in vdev_draid_spare_get_child() 2419 vdev_t *cvd = tvd->vdev_child[cid]; in vdev_draid_spare_get_child() 2446 vdev_t *tvd = vdev_lookup_by_guid(rvd, vds->vds_top_guid); in vdev_draid_spare_open() local 2447 if (tvd == NULL) { in vdev_draid_spare_open() 2464 vdev_draid_config_t *vdc = tvd->vdev_tsd; in vdev_draid_spare_open() 2465 if (tvd->vdev_ops != &vdev_draid_ops || vdc == NULL) in vdev_draid_spare_open() 2477 vdev_draid_calculate_asize(tvd, &asize, &max_asize, in vdev_draid_spare_open() [all …]
|
H A D | dsl_scan.c | 1595 vdev_t *tvd = rvd->vdev_child[i]; in dsl_scan_should_clear() local 1598 mutex_enter(&tvd->vdev_scan_io_queue_lock); in dsl_scan_should_clear() 1599 queue = tvd->vdev_scan_io_queue; in dsl_scan_should_clear() 1609 mutex_exit(&tvd->vdev_scan_io_queue_lock); in dsl_scan_should_clear() 5127 dsl_scan_io_queue_vdev_xfer(vdev_t *svd, vdev_t *tvd) in dsl_scan_io_queue_vdev_xfer() argument 5130 mutex_enter(&tvd->vdev_scan_io_queue_lock); in dsl_scan_io_queue_vdev_xfer() 5132 VERIFY3P(tvd->vdev_scan_io_queue, ==, NULL); in dsl_scan_io_queue_vdev_xfer() 5133 tvd->vdev_scan_io_queue = svd->vdev_scan_io_queue; in dsl_scan_io_queue_vdev_xfer() 5135 if (tvd->vdev_scan_io_queue != NULL) in dsl_scan_io_queue_vdev_xfer() 5136 tvd->vdev_scan_io_queue->q_vd = tvd; in dsl_scan_io_queue_vdev_xfer() [all …]
|
H A D | metaslab.c | 526 vdev_t *tvd = rvd->vdev_child[c]; in metaslab_class_histogram_verify() local 527 metaslab_group_t *mg = vdev_get_mg(tvd, mc); in metaslab_class_histogram_verify() 533 if (!vdev_is_concrete(tvd) || tvd->vdev_ms_shift == 0 || in metaslab_class_histogram_verify() 569 vdev_t *tvd = rvd->vdev_child[c]; in metaslab_class_fragmentation() local 570 metaslab_group_t *mg = tvd->vdev_mg; in metaslab_class_fragmentation() 576 if (!vdev_is_concrete(tvd) || tvd->vdev_ms_shift == 0 || in metaslab_class_fragmentation() 618 vdev_t *tvd = rvd->vdev_child[c]; in metaslab_class_expandable_space() local 619 metaslab_group_t *mg = tvd->vdev_mg; in metaslab_class_expandable_space() 621 if (!vdev_is_concrete(tvd) || tvd->vdev_ms_shift == 0 || in metaslab_class_expandable_space() 631 space += P2ALIGN_TYPED(tvd->vdev_max_asize - tvd->vdev_asize, in metaslab_class_expandable_space() [all …]
|
H A D | vdev_label.c | 762 vdev_t *tvd = rvd->vdev_child[c]; in vdev_top_config_generate() local 764 if (tvd->vdev_ishole) { in vdev_top_config_generate()
|
H A D | vdev_raidz.c | 2530 vdev_t *tvd = vd->vdev_top; in vdev_raidz_io_start() local 2586 tvd->vdev_ashift, vdrz->vd_physical_width, in vdev_raidz_io_start() 2592 tvd->vdev_ashift, logical_width, vdrz->vd_nparity); in vdev_raidz_io_start()
|
H A D | zio.c | 3335 vdev_t *tvd = vdev_lookup_top(zio->io_spa, in zio_nop_write() local 3337 if (tvd->vdev_ops == &vdev_indirect_ops) { in zio_nop_write()
|
/freebsd/contrib/sendmail/libsm/ |
H A D | debug.c | 146 struct timeval tv, tvd; local 150 timersub(&tv, &lasttv, &tvd); 152 timerclear(&tvd); 156 (long) tvd.tv_sec, 157 (long) tvd.tv_usec);
|
/freebsd/sys/netinet/ |
H A D | tcp_hpts.h | 216 struct timeval tvd; in tcp_get_u64_usecs() local 219 tv = &tvd; in tcp_get_u64_usecs() 227 struct timeval tvd; in tcp_get_usecs() local 230 tv = &tvd; in tcp_get_usecs()
|
/freebsd/tests/sys/cddl/zfs/include/ |
H A D | libtest.kshlib | 3135 typeset -i tvd=$2 3138 $ZDB -l $vdev | $AWK -v tvd=$tvd -v prop="${propname}:" ' 3204 typeset -i tvd=$2 3206 $ZPOOL status $pool | $AWK -v want_tvd=$tvd ' 3276 tvd=$(echo $dva | cut -d: -f1) 3278 set -- $(vdevs_for_tvd $pool $tvd) 3287 ashift=$(get_tvd_prop $lvd $tvd ashift)
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | dsl_scan.h | 222 void dsl_scan_io_queue_vdev_xfer(vdev_t *svd, vdev_t *tvd);
|
/freebsd/sys/contrib/openzfs/cmd/ |
H A D | ztest.c | 1535 vdev_t *tvd; in ztest_random_vdev_top() local 1541 tvd = rvd->vdev_child[top]; in ztest_random_vdev_top() 1542 } while (!vdev_is_concrete(tvd) || (tvd->vdev_islog && !log_ok) || in ztest_random_vdev_top() 1543 tvd->vdev_mg == NULL || tvd->vdev_mg->mg_class == NULL); in ztest_random_vdev_top() 3644 vdev_t *tvd = rvd->vdev_child[c]; in ztest_split_pool() local 3648 if (tvd->vdev_islog || tvd->vdev_ops == &vdev_hole_ops) { in ztest_split_pool() 4279 vdev_t *tvd = vd->vdev_top; in online_vdev() local 4319 tvd->vdev_state, in online_vdev() 4363 vdev_t *vd, *tvd; in ztest_vdev_LUN_growth() local 4401 tvd = spa->spa_root_vdev->vdev_child[top]; in ztest_vdev_LUN_growth() [all …]
|
/freebsd/sys/cddl/boot/zfs/ |
H A D | zfssubr.c | 1570 vdev_t *tvd = vd->v_top; in vdev_raidz_read() local 1587 rm = vdev_raidz_map_alloc(data, offset, bytes, tvd->v_ashift, in vdev_raidz_read()
|
/freebsd/sys/contrib/openzfs/cmd/zdb/ |
H A D | zdb.c | 1752 vdev_t *tvd = rvd->vdev_child[c]; in dump_metaslab_groups() local 1753 metaslab_group_t *mg = tvd->vdev_mg; in dump_metaslab_groups() 1764 (u_longlong_t)tvd->vdev_id, in dump_metaslab_groups() 1765 (u_longlong_t)tvd->vdev_ms_count); in dump_metaslab_groups()
|