@@ -48,8 +48,8 @@ const (
4848 LAYOUT_CURVEBS_CHUNKFILE_POOL_DIR = "chunkfilepool"
4949 LAYOUT_CURVEBS_COPYSETS_DIR = "copysets"
5050 LAYOUT_CURVEBS_RECYCLER_DIR = "recycler"
51- LAYOUT_CURVEBS_TOOLS_CONFIG_SYSTEM_PATH = "/etc/curve /tools.conf"
52- LAYOUT_CURVEFS_TOOLS_CONFIG_SYSTEM_PATH = "/etc/curvefs /tools.conf" // TODO: keep tools config path
51+ LAYOUT_CURVEBS_TOOLS_CONFIG_SYSTEM_PATH = "/etc/dingo /tools.conf"
52+ LAYOUT_CURVEFS_TOOLS_CONFIG_SYSTEM_PATH = "/etc/dingofs /tools.conf" // v1 tools config path
5353 LAYOUT_CURVE_TOOLS_V2_CONFIG_SYSTEM_PATH = "/etc/dingo/dingo.yaml"
5454 LAYOUT_CORE_SYSTEM_DIR = "/core"
5555
@@ -226,7 +226,7 @@ type (
226226 ToolsConfDir string // /curvebs/tools/conf
227227 ToolsConfPath string // /curvebs/tools/conf/tools.conf
228228 ToolsConfSrcPath string // /curvebs/conf/tools.conf
229- ToolsConfSystemPath string // /etc/curve /tools.conf
229+ ToolsConfSystemPath string // /etc/dingofs /tools.conf
230230 ToolsBinaryPath string // /curvebs/tools/sbin/curvebs-tool
231231
232232 // tools-v2
@@ -249,7 +249,6 @@ func (dc *DeployConfig) GetProjectLayout() Layout {
249249 kind := dc .GetKind ()
250250 role := dc .GetRole ()
251251 // project
252- curve_root := LAYOUT_CURVEFS_ROOT_DIR
253252 root := utils .Choose (kind == KIND_CURVEBS , LAYOUT_CURVEBS_ROOT_DIR , LAYOUT_DINGOFS_ROOT_DIR )
254253
255254 // service
@@ -265,14 +264,12 @@ func (dc *DeployConfig) GetProjectLayout() Layout {
265264 })
266265 }
267266
268- // tools, keep 'curvefs ' as root dir
269- toolsRootDir := curve_root + LAYOUT_TOOLS_DIR
267+ // tools, change 'dingofs ' as root dir
268+ toolsRootDir := root + LAYOUT_TOOLS_DIR
270269 toolsBinDir := toolsRootDir + LAYOUT_SERVICE_BIN_DIR
271270 toolsConfDir := toolsRootDir + LAYOUT_SERVICE_CONF_DIR
272271 toolsBinaryName := utils .Choose (kind == KIND_CURVEBS , BINARY_CURVEBS_TOOL , BINARY_CURVEFS_TOOL )
273- toolsConfSystemPath := utils .Choose (kind == KIND_CURVEBS ,
274- LAYOUT_CURVEBS_TOOLS_CONFIG_SYSTEM_PATH ,
275- LAYOUT_CURVEFS_TOOLS_CONFIG_SYSTEM_PATH )
272+ toolsConfSystemPath := LAYOUT_CURVEFS_TOOLS_CONFIG_SYSTEM_PATH
276273
277274 // tools-v2
278275 toolsV2RootDir := root + LAYOUT_TOOLS_V2_DIR
0 commit comments