Lines Matching refs:svd
972 vdev_top_transfer(vdev_t *svd, vdev_t *tvd) in vdev_top_transfer() argument
974 spa_t *spa = svd->vdev_spa; in vdev_top_transfer()
981 tvd->vdev_ms_array = svd->vdev_ms_array; in vdev_top_transfer()
982 tvd->vdev_ms_shift = svd->vdev_ms_shift; in vdev_top_transfer()
983 tvd->vdev_ms_count = svd->vdev_ms_count; in vdev_top_transfer()
984 tvd->vdev_top_zap = svd->vdev_top_zap; in vdev_top_transfer()
986 svd->vdev_ms_array = 0; in vdev_top_transfer()
987 svd->vdev_ms_shift = 0; in vdev_top_transfer()
988 svd->vdev_ms_count = 0; in vdev_top_transfer()
989 svd->vdev_top_zap = 0; in vdev_top_transfer()
992 ASSERT3P(tvd->vdev_mg, ==, svd->vdev_mg); in vdev_top_transfer()
993 tvd->vdev_mg = svd->vdev_mg; in vdev_top_transfer()
994 tvd->vdev_ms = svd->vdev_ms; in vdev_top_transfer()
996 svd->vdev_mg = NULL; in vdev_top_transfer()
997 svd->vdev_ms = NULL; in vdev_top_transfer()
1002 tvd->vdev_checkpoint_sm = svd->vdev_checkpoint_sm; in vdev_top_transfer()
1003 svd->vdev_checkpoint_sm = NULL; in vdev_top_transfer()
1005 tvd->vdev_alloc_bias = svd->vdev_alloc_bias; in vdev_top_transfer()
1006 svd->vdev_alloc_bias = VDEV_BIAS_NONE; in vdev_top_transfer()
1008 tvd->vdev_stat.vs_alloc = svd->vdev_stat.vs_alloc; in vdev_top_transfer()
1009 tvd->vdev_stat.vs_space = svd->vdev_stat.vs_space; in vdev_top_transfer()
1010 tvd->vdev_stat.vs_dspace = svd->vdev_stat.vs_dspace; in vdev_top_transfer()
1012 svd->vdev_stat.vs_alloc = 0; in vdev_top_transfer()
1013 svd->vdev_stat.vs_space = 0; in vdev_top_transfer()
1014 svd->vdev_stat.vs_dspace = 0; in vdev_top_transfer()
1027 tvd->vdev_removing = svd->vdev_removing; in vdev_top_transfer()
1028 tvd->vdev_indirect_config = svd->vdev_indirect_config; in vdev_top_transfer()
1029 tvd->vdev_indirect_mapping = svd->vdev_indirect_mapping; in vdev_top_transfer()
1030 tvd->vdev_indirect_births = svd->vdev_indirect_births; in vdev_top_transfer()
1031 range_tree_swap(&svd->vdev_obsolete_segments, in vdev_top_transfer()
1033 tvd->vdev_obsolete_sm = svd->vdev_obsolete_sm; in vdev_top_transfer()
1034 svd->vdev_indirect_config.vic_mapping_object = 0; in vdev_top_transfer()
1035 svd->vdev_indirect_config.vic_births_object = 0; in vdev_top_transfer()
1036 svd->vdev_indirect_config.vic_prev_indirect_vdev = -1ULL; in vdev_top_transfer()
1037 svd->vdev_indirect_mapping = NULL; in vdev_top_transfer()
1038 svd->vdev_indirect_births = NULL; in vdev_top_transfer()
1039 svd->vdev_obsolete_sm = NULL; in vdev_top_transfer()
1040 svd->vdev_removing = 0; in vdev_top_transfer()
1043 while ((msp = txg_list_remove(&svd->vdev_ms_list, t)) != NULL) in vdev_top_transfer()
1045 while ((vd = txg_list_remove(&svd->vdev_dtl_list, t)) != NULL) in vdev_top_transfer()
1047 if (txg_list_remove_this(&spa->spa_vdev_txg_list, svd, t)) in vdev_top_transfer()
1051 if (list_link_active(&svd->vdev_config_dirty_node)) { in vdev_top_transfer()
1052 vdev_config_clean(svd); in vdev_top_transfer()
1056 if (list_link_active(&svd->vdev_state_dirty_node)) { in vdev_top_transfer()
1057 vdev_state_clean(svd); in vdev_top_transfer()
1061 tvd->vdev_deflate_ratio = svd->vdev_deflate_ratio; in vdev_top_transfer()
1062 svd->vdev_deflate_ratio = 0; in vdev_top_transfer()
1064 tvd->vdev_islog = svd->vdev_islog; in vdev_top_transfer()
1065 svd->vdev_islog = 0; in vdev_top_transfer()
1067 dsl_scan_io_queue_vdev_xfer(svd, tvd); in vdev_top_transfer()
1999 vdev_copy_path_impl(vdev_t *svd, vdev_t *dvd) in vdev_copy_path_impl() argument
2001 if (svd->vdev_path != NULL && dvd->vdev_path != NULL) { in vdev_copy_path_impl()
2002 if (strcmp(svd->vdev_path, dvd->vdev_path) != 0) { in vdev_copy_path_impl()
2005 dvd->vdev_path, svd->vdev_path); in vdev_copy_path_impl()
2007 dvd->vdev_path = spa_strdup(svd->vdev_path); in vdev_copy_path_impl()
2009 } else if (svd->vdev_path != NULL) { in vdev_copy_path_impl()
2010 dvd->vdev_path = spa_strdup(svd->vdev_path); in vdev_copy_path_impl()
2022 vdev_copy_path_strict(vdev_t *svd, vdev_t *dvd) in vdev_copy_path_strict() argument
2024 if ((svd->vdev_ops == &vdev_missing_ops) || in vdev_copy_path_strict()
2025 (svd->vdev_ishole && dvd->vdev_ishole) || in vdev_copy_path_strict()
2029 if (svd->vdev_ops != dvd->vdev_ops) { in vdev_copy_path_strict()
2030 vdev_dbgmsg(svd, "vdev_copy_path: vdev type mismatch: %s != %s", in vdev_copy_path_strict()
2031 svd->vdev_ops->vdev_op_type, dvd->vdev_ops->vdev_op_type); in vdev_copy_path_strict()
2035 if (svd->vdev_guid != dvd->vdev_guid) { in vdev_copy_path_strict()
2036 vdev_dbgmsg(svd, "vdev_copy_path: guids mismatch (%llu != " in vdev_copy_path_strict()
2037 "%llu)", (u_longlong_t)svd->vdev_guid, in vdev_copy_path_strict()
2042 if (svd->vdev_children != dvd->vdev_children) { in vdev_copy_path_strict()
2043 vdev_dbgmsg(svd, "vdev_copy_path: children count mismatch: " in vdev_copy_path_strict()
2044 "%llu != %llu", (u_longlong_t)svd->vdev_children, in vdev_copy_path_strict()
2049 for (uint64_t i = 0; i < svd->vdev_children; i++) { in vdev_copy_path_strict()
2050 int error = vdev_copy_path_strict(svd->vdev_child[i], in vdev_copy_path_strict()
2056 if (svd->vdev_ops->vdev_op_leaf) in vdev_copy_path_strict()
2057 vdev_copy_path_impl(svd, dvd); in vdev_copy_path_strict()