Home
last modified time | relevance | path

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

/freebsd/sys/contrib/openzfs/module/zfs/
H A Dvdev_trim.c180 vdev_autotrim_should_stop(vdev_t *tvd) in vdev_autotrim_should_stop() argument
183 !vdev_writeable(tvd) || tvd->vdev_removing || in vdev_autotrim_should_stop()
184 tvd->vdev_rz_expanding || in vdev_autotrim_should_stop()
1504 if (vdev_writeable(tvd) && !tvd->vdev_removing && in vdev_autotrim()
1506 !tvd->vdev_rz_expanding) { in vdev_autotrim()
1507 ASSERT3P(tvd->vdev_top, ==, tvd); in vdev_autotrim()
1523 vdev_autotrim_stop_wait(vdev_t *tvd) in vdev_autotrim_stop_wait() argument
1529 cv_wait(&tvd->vdev_autotrim_cv, in vdev_autotrim_stop_wait()
1530 &tvd->vdev_autotrim_lock); in vdev_autotrim_stop_wait()
1544 vdev_t *tvd; in vdev_autotrim_kick() local
[all …]
H A Dvdev.c1204 ASSERT(tvd == tvd->vdev_top); in vdev_top_transfer()
1216 if (tvd->vdev_mg) in vdev_top_transfer()
1229 tvd->vdev_mg->mg_vd = tvd; in vdev_top_transfer()
1231 tvd->vdev_log_mg->mg_vd = tvd; in vdev_top_transfer()
1314 vd->vdev_top = tvd; in vdev_top_update()
4096 vdev_t *vd, *tvd; in vdev_fault() local
4161 vdev_reopen(tvd); in vdev_fault()
4269 vdev_reopen(tvd); in vdev_online()
4339 vdev_t *vd, *tvd; in vdev_offline_locked() local
4357 mg = tvd->vdev_mg; in vdev_offline_locked()
[all …]
H A Dspa_config.c587 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 Dvdev_rebuild.c1127 vdev_rebuild_get_stats(vdev_t *tvd, vdev_rebuild_stat_t *vrs) in vdev_rebuild_get_stats() argument
1129 spa_t *spa = tvd->vdev_spa; in vdev_rebuild_get_stats()
1134 if (tvd != tvd->vdev_top || tvd->vdev_top_zap == 0) in vdev_rebuild_get_stats()
1138 tvd->vdev_top_zap, VDEV_TOP_ZAP_VDEV_REBUILD_PHYS); in vdev_rebuild_get_stats()
1145 vdev_rebuild_t *vr = &tvd->vdev_rebuild_config; in vdev_rebuild_get_stats()
1148 mutex_enter(&tvd->vdev_rebuild_lock); in vdev_rebuild_get_stats()
1163 mutex_exit(&tvd->vdev_rebuild_lock); in vdev_rebuild_get_stats()
H A Dspa.c2145 vdev_t *vd, *tvd; in spa_load_spares() local
2213 spa_spare_add(tvd); in spa_load_spares()
2584 if (tvd->vdev_islog) { in spa_passivate_log()
2607 if (tvd->vdev_islog) { in spa_activate_log()
7196 vdev_t *vd, *tvd; local
7475 tvd = pvd;
7477 tvd = pvd->vdev_top;
7627 tvd = newvd->vdev_top;
7688 vdev_rebuild(tvd);
7912 tvd = cvd->vdev_top;
[all …]
H A Dvdev_draid.c2405 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 Ddsl_scan.c1559 vdev_t *tvd = rvd->vdev_child[i]; in dsl_scan_should_clear() local
1562 mutex_enter(&tvd->vdev_scan_io_queue_lock); in dsl_scan_should_clear()
1563 queue = tvd->vdev_scan_io_queue; in dsl_scan_should_clear()
1573 mutex_exit(&tvd->vdev_scan_io_queue_lock); in dsl_scan_should_clear()
5053 mutex_enter(&tvd->vdev_scan_io_queue_lock); in dsl_scan_io_queue_vdev_xfer()
5058 if (tvd->vdev_scan_io_queue != NULL) in dsl_scan_io_queue_vdev_xfer()
5059 tvd->vdev_scan_io_queue->q_vd = tvd; in dsl_scan_io_queue_vdev_xfer()
5061 mutex_exit(&tvd->vdev_scan_io_queue_lock); in dsl_scan_io_queue_vdev_xfer()
5071 vdev_t *tvd = rvd->vdev_child[i]; in scan_io_queues_destroy() local
5074 if (tvd->vdev_scan_io_queue != NULL) in scan_io_queues_destroy()
[all …]
H A Dmetaslab.c525 vdev_t *tvd = rvd->vdev_child[c]; in metaslab_class_histogram_verify() local
526 metaslab_group_t *mg = vdev_get_mg(tvd, mc); in metaslab_class_histogram_verify()
532 if (!vdev_is_concrete(tvd) || tvd->vdev_ms_shift == 0 || in metaslab_class_histogram_verify()
568 vdev_t *tvd = rvd->vdev_child[c]; in metaslab_class_fragmentation() local
569 metaslab_group_t *mg = tvd->vdev_mg; in metaslab_class_fragmentation()
575 if (!vdev_is_concrete(tvd) || tvd->vdev_ms_shift == 0 || in metaslab_class_fragmentation()
617 vdev_t *tvd = rvd->vdev_child[c]; in metaslab_class_expandable_space() local
618 metaslab_group_t *mg = tvd->vdev_mg; in metaslab_class_expandable_space()
620 if (!vdev_is_concrete(tvd) || tvd->vdev_ms_shift == 0 || in metaslab_class_expandable_space()
630 space += P2ALIGN_TYPED(tvd->vdev_max_asize - tvd->vdev_asize, in metaslab_class_expandable_space()
[all …]
H A Dvdev_label.c757 vdev_t *tvd = rvd->vdev_child[c]; in vdev_top_config_generate() local
759 if (tvd->vdev_ishole) { in vdev_top_config_generate()
H A Dvdev_raidz.c2516 vdev_t *tvd = vd->vdev_top; in vdev_raidz_io_start() local
2572 tvd->vdev_ashift, vdrz->vd_physical_width, in vdev_raidz_io_start()
2578 tvd->vdev_ashift, logical_width, vdrz->vd_nparity); in vdev_raidz_io_start()
H A Dzio.c3186 vdev_t *tvd = vdev_lookup_top(zio->io_spa, in zio_nop_write() local
3188 if (tvd->vdev_ops == &vdev_indirect_ops) { in zio_nop_write()
/freebsd/contrib/sendmail/libsm/
H A Ddebug.c146 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 Dtcp_hpts.h216 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 Dlibtest.kshlib3135 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 Ddsl_scan.h215 void dsl_scan_io_queue_vdev_xfer(vdev_t *svd, vdev_t *tvd);
/freebsd/sys/contrib/openzfs/cmd/
H A Dztest.c1526 vdev_t *tvd; in ztest_random_vdev_top() local
1532 tvd = rvd->vdev_child[top]; in ztest_random_vdev_top()
1533 } while (!vdev_is_concrete(tvd) || (tvd->vdev_islog && !log_ok) || in ztest_random_vdev_top()
1534 tvd->vdev_mg == NULL || tvd->vdev_mg->mg_class == NULL); in ztest_random_vdev_top()
3619 vdev_t *tvd = rvd->vdev_child[c]; in ztest_split_pool() local
3623 if (tvd->vdev_islog || tvd->vdev_ops == &vdev_hole_ops) { in ztest_split_pool()
4254 vdev_t *tvd = vd->vdev_top; in online_vdev() local
4294 tvd->vdev_state, in online_vdev()
4338 vdev_t *vd, *tvd; in ztest_vdev_LUN_growth() local
4377 mg = tvd->vdev_mg; in ztest_vdev_LUN_growth()
[all …]
/freebsd/sys/cddl/boot/zfs/
H A Dzfssubr.c1570 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 Dzdb.c1723 vdev_t *tvd = rvd->vdev_child[c]; in dump_metaslab_groups() local
1724 metaslab_group_t *mg = tvd->vdev_mg; in dump_metaslab_groups()
1735 (u_longlong_t)tvd->vdev_id, in dump_metaslab_groups()
1736 (u_longlong_t)tvd->vdev_ms_count); in dump_metaslab_groups()