Home
last modified time | relevance | path

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

/freebsd-head/sys/contrib/openzfs/module/zfs/
HDvdev_trim.c181 vdev_autotrim_should_stop(vdev_t *tvd) in vdev_autotrim_should_stop() argument
183 return (tvd->vdev_autotrim_exit_wanted || in vdev_autotrim_should_stop()
184 !vdev_writeable(tvd) || tvd->vdev_removing || in vdev_autotrim_should_stop()
185 tvd->vdev_rz_expanding || in vdev_autotrim_should_stop()
186 spa_get_autotrim(tvd->vdev_spa) == SPA_AUTOTRIM_OFF); in vdev_autotrim_should_stop()
1505 vdev_t *tvd = root_vd->vdev_child[i]; in vdev_autotrim() local
1507 mutex_enter(&tvd->vdev_autotrim_lock); in vdev_autotrim()
1508 if (vdev_writeable(tvd) && !tvd->vdev_removing && in vdev_autotrim()
1509 tvd->vdev_autotrim_thread == NULL && in vdev_autotrim()
1510 !tvd->vdev_rz_expanding) { in vdev_autotrim()
[all …]
HDvdev.c1230 vdev_top_transfer(vdev_t *svd, vdev_t *tvd) in vdev_top_transfer() argument
1237 ASSERT(tvd == tvd->vdev_top); in vdev_top_transfer()
1239 tvd->vdev_ms_array = svd->vdev_ms_array; in vdev_top_transfer()
1240 tvd->vdev_ms_shift = svd->vdev_ms_shift; in vdev_top_transfer()
1241 tvd->vdev_ms_count = svd->vdev_ms_count; in vdev_top_transfer()
1242 tvd->vdev_top_zap = svd->vdev_top_zap; in vdev_top_transfer()
1249 if (tvd->vdev_mg) in vdev_top_transfer()
1250 ASSERT3P(tvd->vdev_mg, ==, svd->vdev_mg); in vdev_top_transfer()
1251 if (tvd->vdev_log_mg) in vdev_top_transfer()
1252 ASSERT3P(tvd->vdev_log_mg, ==, svd->vdev_log_mg); in vdev_top_transfer()
[all …]
HDspa_config.c588 vdev_t *tvd = rvd->vdev_child[c]; in spa_config_update() local
597 if (!vdev_is_concrete(tvd) || in spa_config_update()
598 (tvd->vdev_islog && tvd->vdev_removing)) in spa_config_update()
601 if (tvd->vdev_ms_array == 0) in spa_config_update()
602 vdev_metaslab_set_size(tvd); in spa_config_update()
603 vdev_expand(tvd, txg); in spa_config_update()
HDvdev_rebuild.c1133 vdev_rebuild_get_stats(vdev_t *tvd, vdev_rebuild_stat_t *vrs) in vdev_rebuild_get_stats() argument
1135 spa_t *spa = tvd->vdev_spa; in vdev_rebuild_get_stats()
1140 if (tvd != tvd->vdev_top || tvd->vdev_top_zap == 0) in vdev_rebuild_get_stats()
1144 tvd->vdev_top_zap, VDEV_TOP_ZAP_VDEV_REBUILD_PHYS); in vdev_rebuild_get_stats()
1151 vdev_rebuild_t *vr = &tvd->vdev_rebuild_config; in vdev_rebuild_get_stats()
1154 mutex_enter(&tvd->vdev_rebuild_lock); in vdev_rebuild_get_stats()
1169 mutex_exit(&tvd->vdev_rebuild_lock); in vdev_rebuild_get_stats()
HDspa.c2213 vdev_t *vd, *tvd; in spa_load_spares() local
2237 if ((tvd = spa_lookup_by_guid(spa, vd->vdev_guid, in spa_load_spares()
2238 B_FALSE)) != NULL && tvd->vdev_isspare) in spa_load_spares()
2239 spa_spare_remove(tvd); in spa_load_spares()
2278 if ((tvd = spa_lookup_by_guid(spa, vd->vdev_guid, in spa_load_spares()
2280 if (!tvd->vdev_isspare) in spa_load_spares()
2281 spa_spare_add(tvd); in spa_load_spares()
2296 if (!vdev_is_dead(tvd)) in spa_load_spares()
2297 spa_spare_activate(tvd); in spa_load_spares()
2565 vdev_t *tvd = rvd->vdev_child[c]; in spa_check_for_missing_logs() local
[all …]
HDvdev_draid.c2408 vdev_t *tvd = vds->vds_draid_vdev; in vdev_draid_spare_get_child() local
2409 vdev_draid_config_t *vdc = tvd->vdev_tsd; in vdev_draid_spare_get_child()
2411 ASSERT3P(tvd->vdev_ops, ==, &vdev_draid_ops); in vdev_draid_spare_get_child()
2421 (tvd->vdev_children - 1) - vds->vds_spare_id); in vdev_draid_spare_get_child()
2422 vdev_t *cvd = tvd->vdev_child[cid]; in vdev_draid_spare_get_child()
2449 vdev_t *tvd = vdev_lookup_by_guid(rvd, vds->vds_top_guid); in vdev_draid_spare_open() local
2450 if (tvd == NULL) { in vdev_draid_spare_open()
2467 vdev_draid_config_t *vdc = tvd->vdev_tsd; in vdev_draid_spare_open()
2468 if (tvd->vdev_ops != &vdev_draid_ops || vdc == NULL) in vdev_draid_spare_open()
2480 vdev_draid_calculate_asize(tvd, &asize, &max_asize, in vdev_draid_spare_open()
[all …]
HDdsl_scan.c1599 vdev_t *tvd = rvd->vdev_child[i]; in dsl_scan_should_clear() local
1602 mutex_enter(&tvd->vdev_scan_io_queue_lock); in dsl_scan_should_clear()
1603 queue = tvd->vdev_scan_io_queue; in dsl_scan_should_clear()
1613 mutex_exit(&tvd->vdev_scan_io_queue_lock); in dsl_scan_should_clear()
5131 dsl_scan_io_queue_vdev_xfer(vdev_t *svd, vdev_t *tvd) in dsl_scan_io_queue_vdev_xfer() argument
5134 mutex_enter(&tvd->vdev_scan_io_queue_lock); in dsl_scan_io_queue_vdev_xfer()
5136 VERIFY3P(tvd->vdev_scan_io_queue, ==, NULL); in dsl_scan_io_queue_vdev_xfer()
5137 tvd->vdev_scan_io_queue = svd->vdev_scan_io_queue; in dsl_scan_io_queue_vdev_xfer()
5139 if (tvd->vdev_scan_io_queue != NULL) in dsl_scan_io_queue_vdev_xfer()
5140 tvd->vdev_scan_io_queue->q_vd = tvd; in dsl_scan_io_queue_vdev_xfer()
[all …]
HDmetaslab.c732 vdev_t *tvd = rvd->vdev_child[c]; in metaslab_class_histogram_verify() local
733 metaslab_group_t *mg = vdev_get_mg(tvd, mc); in metaslab_class_histogram_verify()
739 if (!vdev_is_concrete(tvd) || tvd->vdev_ms_shift == 0 || in metaslab_class_histogram_verify()
775 vdev_t *tvd = rvd->vdev_child[c]; in metaslab_class_fragmentation() local
776 metaslab_group_t *mg = tvd->vdev_mg; in metaslab_class_fragmentation()
782 if (!vdev_is_concrete(tvd) || tvd->vdev_ms_shift == 0 || in metaslab_class_fragmentation()
824 vdev_t *tvd = rvd->vdev_child[c]; in metaslab_class_expandable_space() local
825 metaslab_group_t *mg = tvd->vdev_mg; in metaslab_class_expandable_space()
827 if (!vdev_is_concrete(tvd) || tvd->vdev_ms_shift == 0 || in metaslab_class_expandable_space()
837 space += P2ALIGN_TYPED(tvd->vdev_max_asize - tvd->vdev_asize, in metaslab_class_expandable_space()
[all …]
HDvdev_label.c763 vdev_t *tvd = rvd->vdev_child[c]; in vdev_top_config_generate() local
765 if (tvd->vdev_ishole) { in vdev_top_config_generate()
HDvdev_raidz.c2558 vdev_t *tvd = vd->vdev_top; in vdev_raidz_io_start() local
2614 tvd->vdev_ashift, vdrz->vd_physical_width, in vdev_raidz_io_start()
2620 tvd->vdev_ashift, logical_width, vdrz->vd_nparity); in vdev_raidz_io_start()
HDzio.c3359 vdev_t *tvd = vdev_lookup_top(zio->io_spa, in zio_nop_write() local
3361 if (tvd->vdev_ops == &vdev_indirect_ops) { in zio_nop_write()
/freebsd-head/contrib/sendmail/libsm/
HDdebug.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-head/sys/netinet/
HDtcp_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-head/tests/sys/cddl/zfs/include/
HDlibtest.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-head/sys/contrib/openzfs/include/sys/
HDdsl_scan.h223 void dsl_scan_io_queue_vdev_xfer(vdev_t *svd, vdev_t *tvd);
/freebsd-head/sys/contrib/openzfs/cmd/
HDztest.c1536 vdev_t *tvd; in ztest_random_vdev_top() local
1542 tvd = rvd->vdev_child[top]; in ztest_random_vdev_top()
1543 } while (!vdev_is_concrete(tvd) || (tvd->vdev_islog && !log_ok) || in ztest_random_vdev_top()
1544 tvd->vdev_mg == NULL || tvd->vdev_mg->mg_class == NULL); in ztest_random_vdev_top()
3646 vdev_t *tvd = rvd->vdev_child[c]; in ztest_split_pool() local
3650 if (tvd->vdev_islog || tvd->vdev_ops == &vdev_hole_ops) { in ztest_split_pool()
4281 vdev_t *tvd = vd->vdev_top; in online_vdev() local
4321 tvd->vdev_state, in online_vdev()
4365 vdev_t *vd, *tvd; in ztest_vdev_LUN_growth() local
4403 tvd = spa->spa_root_vdev->vdev_child[top]; in ztest_vdev_LUN_growth()
[all …]
/freebsd-head/sys/cddl/boot/zfs/
HDzfssubr.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-head/sys/contrib/openzfs/cmd/zdb/
HDzdb.c1753 vdev_t *tvd = rvd->vdev_child[c]; in dump_metaslab_groups() local
1754 metaslab_group_t *mg = tvd->vdev_mg; in dump_metaslab_groups()
1765 (u_longlong_t)tvd->vdev_id, in dump_metaslab_groups()
1766 (u_longlong_t)tvd->vdev_ms_count); in dump_metaslab_groups()