@@ -34,6 +34,7 @@ import (
3434
3535const (
3636 // service project layout
37+ LAYOUT_DINGOFS_ROOT_DIR = "/dingofs"
3738 LAYOUT_CURVEFS_ROOT_DIR = "/curvefs"
3839 LAYOUT_CURVEBS_ROOT_DIR = "/curvebs"
3940 LAYOUT_PLAYGROUND_ROOT_DIR = "playground"
@@ -48,13 +49,13 @@ const (
4849 LAYOUT_CURVEBS_COPYSETS_DIR = "copysets"
4950 LAYOUT_CURVEBS_RECYCLER_DIR = "recycler"
5051 LAYOUT_CURVEBS_TOOLS_CONFIG_SYSTEM_PATH = "/etc/curve/tools.conf"
51- LAYOUT_CURVEFS_TOOLS_CONFIG_SYSTEM_PATH = "/etc/curvefs/tools.conf"
52+ LAYOUT_CURVEFS_TOOLS_CONFIG_SYSTEM_PATH = "/etc/curvefs/tools.conf" // TODO: keep tools config path
5253 LAYOUT_CURVE_TOOLS_V2_CONFIG_SYSTEM_PATH = "/etc/dingo/dingo.yaml"
5354 LAYOUT_CORE_SYSTEM_DIR = "/core"
5455
5556 BINARY_CURVEBS_TOOL = "curvebs-tool"
5657 BINARY_CURVEBS_FORMAT = "curve_format"
57- BINARY_CURVEFS_TOOL = "curvefs_tool "
58+ BINARY_CURVEFS_TOOL = "dingo-tool "
5859 BINARY_CURVE_TOOL_V2 = "curve"
5960 METAFILE_CHUNKFILE_POOL = "chunkfilepool.meta"
6061 METAFILE_CHUNKSERVER_ID = "chunkserver.dat"
@@ -229,7 +230,7 @@ type (
229230 ToolsBinaryPath string // /curvebs/tools/sbin/curvebs-tool
230231
231232 // tools-v2
232- ToolsV2ConfSrcPath string // /curvefs /conf/dingo.yaml
233+ ToolsV2ConfSrcPath string // /dingofs /conf/dingo.yaml
233234 ToolsV2ConfSystemPath string // /etc/dingo/dingo.yaml
234235 ToolsV2BinaryPath string // /curvebs/tools-v2/sbin/curve
235236
@@ -248,7 +249,8 @@ func (dc *DeployConfig) GetProjectLayout() Layout {
248249 kind := dc .GetKind ()
249250 role := dc .GetRole ()
250251 // project
251- root := utils .Choose (kind == KIND_CURVEBS , LAYOUT_CURVEBS_ROOT_DIR , LAYOUT_CURVEFS_ROOT_DIR )
252+ curve_root := LAYOUT_CURVEFS_ROOT_DIR
253+ root := utils .Choose (kind == KIND_CURVEBS , LAYOUT_CURVEBS_ROOT_DIR , LAYOUT_DINGOFS_ROOT_DIR )
252254
253255 // service
254256 confSrcDir := root + LAYOUT_CONF_SRC_DIR
@@ -263,8 +265,8 @@ func (dc *DeployConfig) GetProjectLayout() Layout {
263265 })
264266 }
265267
266- // tools
267- toolsRootDir := root + LAYOUT_TOOLS_DIR
268+ // tools, keep 'curvefs' as root dir
269+ toolsRootDir := curve_root + LAYOUT_TOOLS_DIR
268270 toolsBinDir := toolsRootDir + LAYOUT_SERVICE_BIN_DIR
269271 toolsConfDir := toolsRootDir + LAYOUT_SERVICE_CONF_DIR
270272 toolsBinaryName := utils .Choose (kind == KIND_CURVEBS , BINARY_CURVEBS_TOOL , BINARY_CURVEFS_TOOL )
0 commit comments