Home
last modified time | relevance | path

Searched refs:rvd (Results 1 – 9 of 9) sorted by relevance

/titanic_41/usr/src/uts/common/fs/zfs/
H A Dspa.c196 vdev_t *rvd = spa->spa_root_vdev; in spa_prop_get_config() local
205 if (rvd != NULL) { in spa_prop_get_config()
228 rvd->vdev_state, src); in spa_prop_get_config()
728 vdev_t *rvd = spa->spa_root_vdev; in spa_change_guid_check() local
732 vdev_state = rvd->vdev_state; in spa_change_guid_check()
749 vdev_t *rvd = spa->spa_root_vdev; in spa_change_guid_sync() local
754 rvd->vdev_guid = *newguid; in spa_change_guid_sync()
755 rvd->vdev_guid_sum += (*newguid - oldguid); in spa_change_guid_sync()
756 vdev_config_dirty(rvd); in spa_change_guid_sync()
1622 vdev_t *mrvd, *rvd = spa->spa_root_vdev; in spa_config_valid() local
[all …]
H A Dspa_config.c363 vdev_t *rvd = spa->spa_root_vdev; in spa_config_generate() local
369 vd = rvd; in spa_config_generate()
415 if (vd != rvd) { in spa_config_generate()
504 vdev_t *rvd = spa->spa_root_vdev; in spa_config_update() local
513 vdev_config_dirty(rvd); in spa_config_update()
522 for (c = 0; c < rvd->vdev_children; c++) { in spa_config_update()
523 vdev_t *tvd = rvd->vdev_child[c]; in spa_config_update()
H A Duberblock.c47 uberblock_update(uberblock_t *ub, vdev_t *rvd, uint64_t txg) in uberblock_update() argument
57 ub->ub_guid_sum = rvd->vdev_guid_sum; in uberblock_update()
H A Dvdev.c153 vdev_t *rvd = spa->spa_root_vdev; in vdev_lookup_top() local
157 if (vdev < rvd->vdev_children) { in vdev_lookup_top()
158 ASSERT(rvd->vdev_child[vdev] != NULL); in vdev_lookup_top()
159 return (rvd->vdev_child[vdev]); in vdev_lookup_top()
2365 vdev_t *vd, *tvd, *pvd, *rvd = spa->spa_root_vdev; in vdev_online() local
2383 for (pvd = vd; pvd != rvd; pvd = pvd->vdev_parent) in vdev_online()
2391 for (pvd = vd; pvd != rvd; pvd = pvd->vdev_parent) in vdev_online()
2527 vdev_t *rvd = spa->spa_root_vdev; in vdev_clear() local
2532 vd = rvd; in vdev_clear()
2561 vdev_reopen(vd == rvd ? rvd : vd->vdev_top); in vdev_clear()
[all …]
H A Dvdev_label.c401 vdev_t *rvd = spa->spa_root_vdev; in vdev_top_config_generate() local
405 array = kmem_alloc(rvd->vdev_children * sizeof (uint64_t), KM_SLEEP); in vdev_top_config_generate()
407 for (c = 0, idx = 0; c < rvd->vdev_children; c++) { in vdev_top_config_generate()
408 vdev_t *tvd = rvd->vdev_child[c]; in vdev_top_config_generate()
420 rvd->vdev_children) == 0); in vdev_top_config_generate()
422 kmem_free(array, rvd->vdev_children * sizeof (uint64_t)); in vdev_top_config_generate()
942 vdev_uberblock_load(vdev_t *rvd, uberblock_t *ub, nvlist_t **config) in vdev_uberblock_load() argument
945 spa_t *spa = rvd->vdev_spa; in vdev_uberblock_load()
961 vdev_uberblock_load_impl(zio, rvd, flags, &cb); in vdev_uberblock_load()
H A Dmetaslab.c277 vdev_t *rvd = mc->mc_spa->spa_root_vdev; in metaslab_class_histogram_verify() local
287 for (int c = 0; c < rvd->vdev_children; c++) { in metaslab_class_histogram_verify()
288 vdev_t *tvd = rvd->vdev_child[c]; in metaslab_class_histogram_verify()
320 vdev_t *rvd = mc->mc_spa->spa_root_vdev; in metaslab_class_fragmentation() local
325 for (int c = 0; c < rvd->vdev_children; c++) { in metaslab_class_fragmentation()
326 vdev_t *tvd = rvd->vdev_child[c]; in metaslab_class_fragmentation()
370 vdev_t *rvd = mc->mc_spa->spa_root_vdev; in metaslab_class_expandable_space() local
374 for (int c = 0; c < rvd->vdev_children; c++) { in metaslab_class_expandable_space()
375 vdev_t *tvd = rvd->vdev_child[c]; in metaslab_class_expandable_space()
H A Ddsl_scan.c1810 vdev_t *rvd = spa->spa_root_vdev; in dsl_scan_scrub_cb() local
1811 uint64_t maxinflight = rvd->vdev_children * zfs_top_maxinflight; in dsl_scan_scrub_cb()
/titanic_41/usr/src/cmd/zdb/
H A Dzdb.c798 vdev_t *rvd = spa->spa_root_vdev; in dump_metaslab_groups() local
804 for (int c = 0; c < rvd->vdev_children; c++) { in dump_metaslab_groups()
805 vdev_t *tvd = rvd->vdev_child[c]; in dump_metaslab_groups()
839 vdev_t *vd, *rvd = spa->spa_root_vdev; in dump_metaslabs() local
840 uint64_t m, c = 0, children = rvd->vdev_children; in dump_metaslabs()
851 vd = rvd->vdev_child[c]; in dump_metaslabs()
869 vd = rvd->vdev_child[c]; in dump_metaslabs()
2549 vdev_t *rvd = spa->spa_root_vdev; in zdb_leak_init() local
2550 for (uint64_t c = 0; c < rvd->vdev_children; c++) { in zdb_leak_init()
2551 vdev_t *vd = rvd->vdev_child[c]; in zdb_leak_init()
[all …]
/titanic_41/usr/src/cmd/ztest/
H A Dztest.c996 vdev_t *rvd = spa->spa_root_vdev; in ztest_random_vdev_top() local
1002 top = ztest_random(rvd->vdev_children); in ztest_random_vdev_top()
1003 tvd = rvd->vdev_child[top]; in ztest_random_vdev_top()
2474 vdev_t *rvd = spa->spa_root_vdev; in find_vdev_hole() local
2479 for (c = 0; c < rvd->vdev_children; c++) { in find_vdev_hole()
2480 vdev_t *cvd = rvd->vdev_child[c]; in find_vdev_hole()
2566 vdev_t *rvd = spa->spa_root_vdev; in ztest_vdev_aux_add_remove() local
2605 vdev_lookup_by_path(rvd, path) == NULL) in ztest_vdev_aux_add_remove()
2649 vdev_t *rvd = spa->spa_root_vdev; in ztest_split_pool() local
2676 schild = malloc(rvd->vdev_children * sizeof (nvlist_t *)); in ztest_split_pool()
[all …]