Home
last modified time | relevance | path

Searched refs:spa_root_vdev (Results 1 – 25 of 27) sorted by relevance

12

/freebsd/sys/contrib/openzfs/module/zfs/
H A Dspa.c406 vdev_t *rvd = spa->spa_root_vdev; in spa_prop_get_config()
762 if (!vdev_is_bootable(spa->spa_root_vdev)) { in spa_prop_validate()
984 vdev_t *rvd = spa->spa_root_vdev; in spa_change_guid_check()
1011 vdev_t *rvd = spa->spa_root_vdev; in spa_change_guid_sync()
1071 vdev_clear_kobj_evt(spa->spa_root_vdev); in spa_change_guid()
1808 ASSERT(spa->spa_root_vdev == NULL); in spa_deactivate()
2079 if (spa->spa_root_vdev) { in spa_unload()
2080 vdev_t *root_vdev = spa->spa_root_vdev; in spa_unload()
2133 if (spa->spa_root_vdev) in spa_unload()
2134 vdev_free(spa->spa_root_vdev); in spa_unload()
[all …]
H A Dspa_misc.c673 vdev_deadman(spa->spa_root_vdev, FTAG); in spa_deadman()
1297 vdev_dtl_reassess(spa->spa_root_vdev, 0, 0, B_FALSE, B_FALSE); in spa_vdev_config_exit()
1402 vdev_hold(spa->spa_root_vdev); in spa_vdev_state_enter()
1416 if (vd == NULL || vd == spa->spa_root_vdev) { in spa_vdev_state_exit()
1417 vdev_top = spa->spa_root_vdev; in spa_vdev_state_exit()
1426 if (vd != spa->spa_root_vdev) in spa_vdev_state_exit()
1434 vdev_rele(spa->spa_root_vdev); in spa_vdev_state_exit()
1479 vdev_config_dirty(spa->spa_root_vdev); in spa_activate_mos_feature()
1487 vdev_config_dirty(spa->spa_root_vdev); in spa_deactivate_mos_feature()
1506 if (spa->spa_root_vdev == NULL) in spa_by_guid()
[all …]
H A Dspa_config.c356 if ((target->spa_root_vdev) && postblkidevent) { in spa_write_cachefile()
357 vdev_post_kobj_evt(target->spa_root_vdev); in spa_write_cachefile()
419 vdev_t *rvd = spa->spa_root_vdev; in spa_config_generate()
569 vdev_t *rvd = spa->spa_root_vdev; in spa_config_update()
H A Dspa_checkpoint.c259 vdev_t *rvd = spa->spa_root_vdev; in spa_checkpoint_accounting_verify()
370 vdev_t *rvd = spa->spa_root_vdev; in spa_checkpoint_discard_is_done()
403 vdev_t *rvd = spa->spa_root_vdev; in spa_checkpoint_discard_thread()
H A Dvdev_rebuild.c765 vdev_t *rvd = spa->spa_root_vdev; in vdev_rebuild_thread()
994 if (vd == spa->spa_root_vdev) { in vdev_rebuild_active()
1051 if (vd == spa->spa_root_vdev) { in vdev_rebuild_restart_impl()
1084 vdev_rebuild_restart_impl(spa->spa_root_vdev); in vdev_rebuild_restart()
1099 if (vd == spa->spa_root_vdev) { in vdev_rebuild_stop_wait()
1126 vdev_rebuild_stop_wait(spa->spa_root_vdev); in vdev_rebuild_stop_all()
H A Ddsl_scan.c644 vdev_scan_stat_init(spa->spa_root_vdev); in dsl_scan_init()
751 vdev_config_dirty(spa->spa_root_vdev); in dsl_errorscrub_setup_sync()
807 for (i = 0; i < spa->spa_root_vdev->vdev_children; i++) { in dsl_scan_sync_state()
808 vdev_t *vd = spa->spa_root_vdev->vdev_child[i]; in dsl_scan_sync_state()
851 vdev_t *rvd = scn->scn_dp->dp_spa->spa_root_vdev; in dsl_scan_setup_check()
892 scn->scn_phys.scn_to_examine = spa->spa_root_vdev->vdev_stat.vs_alloc; in dsl_scan_setup_sync()
899 vdev_scan_stat_init(spa->spa_root_vdev); in dsl_scan_setup_sync()
905 vdev_config_dirty(spa->spa_root_vdev); in dsl_scan_setup_sync()
907 if (vdev_resilver_needed(spa->spa_root_vdev, in dsl_scan_setup_sync()
936 vdev_t *rvd = spa->spa_root_vdev; in dsl_scan_setup_sync()
[all …]
H A Dvdev.c460 vdev_t *rvd = spa->spa_root_vdev; in vdev_lookup_top()
508 rc = vdev_count_leaves_impl(spa->spa_root_vdev); in vdev_count_leaves()
648 if (spa->spa_root_vdev == NULL) { in vdev_alloc_common()
650 spa->spa_root_vdev = vd; in vdev_alloc_common()
655 if (spa->spa_root_vdev == vd) { in vdev_alloc_common()
804 if (ops != &vdev_root_ops && spa->spa_root_vdev == NULL) in vdev_alloc()
1207 if (vd == spa->spa_root_vdev) in vdev_free()
1208 spa->spa_root_vdev = NULL; in vdev_free()
2790 if (!vdev_resilver_needed(spa->spa_root_vdev, NULL, NULL) && in vdev_reopen()
2976 ASSERT(vd != vd->vdev_spa->spa_root_vdev); in vdev_dtl_dirty()
[all …]
H A Dvdev_removal.c200 vdev_t *rvd = spa->spa_root_vdev; in vdev_passivate()
880 vdev_config_dirty(spa->spa_root_vdev); in spa_finish_removal()
1432 vdev_config_dirty(spa->spa_root_vdev); in vdev_remove_complete()
2061 vdev_t *rvd = spa->spa_root_vdev; in vdev_remove_make_hole_and_free()
2279 vdev_t *rvd = spa->spa_root_vdev; in spa_vdev_remove_top_check()
2559 vdev_t *vd = spa->spa_root_vdev->vdev_child[indirect_vdev_id]; in spa_removal_get_stats()
H A Dspa_log_spacemap.c1345 for (uint64_t c = 0; c < spa->spa_root_vdev->vdev_children; c++) { in spa_ld_log_spacemaps()
1346 vdev_t *vd = spa->spa_root_vdev->vdev_child[c]; in spa_ld_log_spacemaps()
H A Dvdev_trim.c1502 vdev_t *root_vd = spa->spa_root_vdev; in vdev_autotrim()
1547 vdev_t *root_vd = spa->spa_root_vdev; in vdev_autotrim_kick()
1567 vdev_t *root_vd = spa->spa_root_vdev; in vdev_autotrim_stop_all()
H A Dspa_stats.c411 vdev_get_stats(spa->spa_root_vdev, &ts->vs1); in spa_txg_history_init_io()
434 vdev_get_stats(spa->spa_root_vdev, &ts->vs2); in spa_txg_history_fini_io()
H A Dvdev_label.c408 if (vd != spa->spa_root_vdev) in root_vdev_actions_getprogress()
756 vdev_t *rvd = spa->spa_root_vdev; in vdev_top_config_generate()
2076 boolean_t changed = uberblock_update(ub, spa->spa_root_vdev, in vdev_config_sync()
H A Dbrt.c1435 for (uint64_t vdevid = 0; vdevid < spa->spa_root_vdev->vdev_children; in brt_load()
1454 brt_vdevs_expand(spa, spa->spa_root_vdev->vdev_children); in brt_load()
H A Dvdev_raidz.c4292 ASSERT0(vdev_uberblock_sync_list(&spa->spa_root_vdev, 1, in raidz_reflow_scratch_sync()
4354 ASSERT0(vdev_uberblock_sync_list(&spa->spa_root_vdev, 1, in raidz_reflow_scratch_sync()
4455 VERIFY0(vdev_uberblock_sync_list(&spa->spa_root_vdev, 1, in vdev_raidz_reflow_copy_scratch()
4876 for (int c = 0; c < spa->spa_root_vdev->vdev_children; c++) { in spa_raidz_expand_get_stats()
4877 vdev_t *vd = spa->spa_root_vdev->vdev_child[c]; in spa_raidz_expand_get_stats()
H A Dvdev_draid.c2367 return (vdev_lookup_by_guid(vd->vdev_spa->spa_root_vdev, in vdev_draid_spare_get_parent()
2444 vdev_t *rvd = vd->vdev_spa->spa_root_vdev; in vdev_draid_spare_open()
H A Dzfs_ioctl.c3811 error = vdev_label_write_bootenv(spa->spa_root_vdev, innvl); in zfs_ioc_set_bootenv()
3830 error = vdev_label_read_bootenv(spa->spa_root_vdev, outnvl); in zfs_ioc_get_bootenv()
6073 NULL : spa->spa_root_vdev, 0); in zfs_ioc_clear()
6130 vdev_reopen(spa->spa_root_vdev); in zfs_ioc_pool_reopen()
7085 vdev_config_dirty(spa->spa_root_vdev); in zfs_ioc_pool_sync()
H A Ddsl_pool.c655 vdev_t *rvd = spa->spa_root_vdev; in dsl_early_sync_task_verify()
H A Dmetaslab.c720 vdev_t *rvd = spa->spa_root_vdev; in metaslab_class_histogram_verify()
769 vdev_t *rvd = mc->mc_spa->spa_root_vdev; in metaslab_class_fragmentation()
819 vdev_t *rvd = mc->mc_spa->spa_root_vdev; in metaslab_class_expandable_space()
2778 ASSERT3P(vd->vdev_spa->spa_root_vdev, ==, vd->vdev_parent); in metaslab_space_update()
H A Dzio.c1275 if (unlikely(vdevid >= spa->spa_root_vdev->vdev_children)) { in zfs_blkptr_verify()
1281 vdev_t *vd = spa->spa_root_vdev->vdev_child[vdevid]; in zfs_blkptr_verify()
1325 if (vdevid >= spa->spa_root_vdev->vdev_children) in zfs_dva_valid()
1328 vdev_t *vd = spa->spa_root_vdev->vdev_child[vdevid]; in zfs_dva_valid()
H A Dvdev_indirect.c537 vdev_config_dirty(spa->spa_root_vdev); in spa_condense_indirect_complete_sync()
/freebsd/stand/libsa/zfs/
H A Dzfsimpl.c544 vlist = &spa->spa_root_vdev->v_children; in vdev_lookup_top()
1123 vdev_insert(spa->spa_root_vdev, top_vdev); in vdev_from_nvlist()
1293 spa->spa_root_vdev->v_nchildren = vdev_children; in vdev_init_from_nvlist()
1333 vdev_set_state(spa->spa_root_vdev); in vdev_init_from_nvlist()
1376 spa->spa_root_vdev = vdev_create(guid, NULL); in spa_create()
1377 if (spa->spa_root_vdev == NULL) { in spa_create()
1382 spa->spa_root_vdev->v_name = strdup("root"); in spa_create()
1496 vlist = &spa->spa_root_vdev->v_children; in spa_status()
2101 spa->spa_root_vdev->v_nchildren = vdev_children; in vdev_probe()
2270 vlist = &spa->spa_root_vdev->v_children; in zio_read()
[all …]
/freebsd/sys/contrib/openzfs/cmd/zdb/
H A Dzdb.c600 vdev_t *rvd = spa->spa_root_vdev; in livelist_metaslab_validate()
1513 actual_refcount = get_dtl_refcount(spa->spa_root_vdev); in verify_spacemap_refcounts()
1514 actual_refcount += get_metaslab_refcount(spa->spa_root_vdev); in verify_spacemap_refcounts()
1515 actual_refcount += get_obsolete_refcount(spa->spa_root_vdev); in verify_spacemap_refcounts()
1517 actual_refcount += get_checkpoint_refcount(spa->spa_root_vdev); in verify_spacemap_refcounts()
1745 vdev_t *rvd = spa->spa_root_vdev; in dump_metaslab_groups()
1862 vdev_t *vd, *rvd = spa->spa_root_vdev; in dump_metaslabs()
6515 vdev_t *rvd = spa->spa_root_vdev; in zdb_leak_init_exclude_checkpoint()
6601 vdev_t *rvd = spa->spa_root_vdev; in load_concrete_ms_allocatable_trees()
6691 vdev_t *rvd = spa->spa_root_vdev; in zdb_leak_init_prepare_indirect_vdevs()
[all …]
/freebsd/sys/contrib/openzfs/cmd/
H A Dztest.c1535 vdev_t *rvd = spa->spa_root_vdev; in ztest_random_vdev_top()
3144 raidvd = ztest_spa->spa_root_vdev->vdev_child[0]; in ztest_get_raidz_children()
3313 vdev_t *rvd = spa->spa_root_vdev; in spa_num_top_vdevs()
3502 vdev_t *rvd = spa->spa_root_vdev; in ztest_vdev_aux_add_remove()
3614 vdev_t *rvd = spa->spa_root_vdev; in ztest_split_pool()
3711 vdev_t *rvd = spa->spa_root_vdev; in ztest_vdev_attach_detach()
4403 tvd = spa->spa_root_vdev->vdev_child[top]; in ztest_vdev_LUN_growth()
4477 tvd = spa->spa_root_vdev->vdev_child[top]; in ztest_vdev_LUN_growth()
6514 vd0 = vdev_lookup_by_path(spa->spa_root_vdev, path0); in ztest_fault_inject()
7205 vdev_t *rand_vd = ztest_random_concrete_vdev_leaf(spa->spa_root_vdev); in ztest_initialize()
[all …]
/freebsd/sys/contrib/openzfs/include/sys/
H A Dspa_impl.h261 vdev_t *spa_root_vdev; /* top-level vdev container */ member
/freebsd/sys/cddl/boot/zfs/
H A Dzfsimpl.h2053 vdev_t *spa_root_vdev; /* toplevel vdev container */ member

12