Skip to content

Commit 67f1c36

Browse files
rock-gitchuandew
authored andcommitted
[chore][client] Adjust code dir struct.
1 parent fc6f60b commit 67f1c36

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+291
-329
lines changed

src/cache/common/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ target_link_libraries(cache_common
2323

2424
dingofs_status
2525
dingofs_common
26-
vfs_meta_v2_rpc_lib
26+
vfs_meta_mds_rpc_lib
2727
)

src/cache/common/mds_client.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535

3636
#include "cache/common/macro.h"
3737
#include "cache/utils/helper.h"
38-
#include "client/vfs/meta/v2/mds_discovery.h"
39-
#include "client/vfs/meta/v2/rpc.h"
38+
#include "client/vfs/metasystem/mds/mds_discovery.h"
39+
#include "client/vfs/metasystem/mds/rpc.h"
4040
#include "common/status.h"
4141
#include "dingofs/cachegroup.pb.h"
4242
#include "dingofs/error.pb.h"

src/cache/common/mds_client.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
#include <cstdint>
2727
#include <string>
2828

29-
#include "client/vfs/meta/v2/mds_discovery.h"
30-
#include "client/vfs/meta/v2/rpc.h"
29+
#include "client/vfs/metasystem/mds/mds_discovery.h"
30+
#include "client/vfs/metasystem/mds/rpc.h"
3131
#include "common/status.h"
3232
#include "dingofs/mds.pb.h"
3333
#include "mds/mds/mds_meta.h"

src/client/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,17 @@
1313
# limitations under the License.
1414

1515
add_subdirectory(memory)
16-
add_subdirectory(meta)
1716
add_subdirectory(vfs)
1817

1918
file(GLOB FUSE_CLIENT_LIB_SRCS
20-
"vfs_wrapper/access_log.cpp"
21-
"vfs_wrapper/access_wrapper.cpp"
22-
"vfs_wrapper/vfs_wrapper.cpp"
2319
"fuse/fuse_op.cpp"
2420
"fuse/fuse_server.cpp"
2521
)
2622

2723
add_library(fuse_client_lib ${FUSE_CLIENT_LIB_SRCS})
2824
target_link_libraries(fuse_client_lib
2925
PROTO_OBJS
30-
vfs_meta
26+
3127
vfs_lib
3228
block_accesser
3329
dingofs_metrics
File renamed without changes.

src/client/vfs_wrapper/global_log.h renamed to src/client/common/global_log.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
* limitations under the License.
1515
*/
1616

17+
#ifndef DINGOFS_CLIENT_COMMON_CONST_H_
18+
#define DINGOFS_CLIENT_COMMON_CONST_H_
19+
1720
#include "fmt/format.h"
1821
#include "glog/logging.h"
1922
#include "options/common/dynamic_vlog.h"
@@ -48,4 +51,6 @@ static int InitLog(const char* argv0, const std::string& conf_path) {
4851
google::InitGoogleLogging(argv0);
4952

5053
return 0;
51-
}
54+
}
55+
56+
#endif // DINGOFS_CLIENT_COMMON_CONST_H_

src/client/fuse/fuse_op.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323

2424
#include "absl/strings/str_format.h"
2525
#include "client/common/utils.h"
26-
#include "client/meta/vfs_meta.h"
2726
#include "client/vfs/common/helper.h"
28-
#include "client/vfs_wrapper/vfs_wrapper.h"
27+
#include "client/vfs/vfs_meta.h"
28+
#include "client/vfs/vfs_wrapper.h"
2929
#include "common/define.h"
3030
#include "common/status.h"
3131
#include "fmt/format.h"

src/client/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
#include <cstdlib>
1919

2020
#include "absl/cleanup/cleanup.h"
21+
#include "client/common/global_log.h"
2122
#include "client/fuse/fuse_op.h"
2223
#include "client/fuse/fuse_server.h"
23-
#include "client/vfs_wrapper/global_log.h"
2424
#include "options/client/option.h"
2525
#include "utils/configuration.h"
2626

src/client/meta/CMakeLists.txt

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/client/meta/vfs_meta.cpp

Lines changed: 0 additions & 74 deletions
This file was deleted.

0 commit comments

Comments
 (0)