diff --git a/README_zh.md b/README_zh.md
index d14c642ce4ad74b0fedc18aeb911d43cf94cf5b2..31f09dc422333359a96a9c68d3afbae98b9da02b 100644
--- a/README_zh.md
+++ b/README_zh.md
@@ -1,18 +1,18 @@
-# 分布式文件管理服务
+# 分布式文件服务
## **简介**
-分布式文件管理提供跨设备的、符合POSIX规范的文件访问能力。其在分布式软总线动态组网的基础上,为网络上各个设备结点提供一个统一的、逻辑的、树形的文件系统层次结构。
+分布式文件服务提供跨设备的、符合POSIX规范的文件访问能力。其在分布式软总线动态组网的基础上,为网络上各个设备结点提供一个统一的、逻辑的、树形的文件系统层次结构。
-
**图1**. 分布式文件管理架构图
+
**图1**. 分布式文件系统架构图

-其包括如下几个核心模块:
+其包括如下几个核心模块:
- distributed_file_daemon:分布式文件管理常驻用户态服务,负责接入设备组网、数据传输能力,并负责挂载hmdfs。
-- distributed_file_service:分布式文件管理服务进程,对应用提供分布式扩展能力。
-- hmdfs(Harmony Distributed File System):分布式文件管理核心模块,是一种面向移动分布式场景的、高性能的、基于内核实现的、堆叠式文件系统。
+- distributed_file_service:分布式文件访问能力服务,对应用提供分布式扩展能力。
+- hmdfs(Harmony Distributed File System):分布式文件系统核心模块,是一种面向移动分布式场景的、高性能的、基于内核实现的、堆叠式文件系统。
## **目录**
@@ -57,7 +57,7 @@
取决于680B与被堆叠文件支持长度的最小值。f2fs和ext4均为255B。
- 最大单文件大小
- 取决于$2^{64}$B与被堆叠文件系统支持最大单文件大小的最小值。ext4单文件最大为16TB, f2fs单文件最大为3.94TB。
+ 取决于$2^{64}$B与被堆叠文件系统支持最大单文件大小的最小值。ext4单文件最大为16TB,f2fs单文件最大为3.94TB。
## **说明**
@@ -72,7 +72,7 @@
1) 经过以上环境准备后,即建立了设备间分布式文件互相访问的能力。
2) 可以在应用内通过```context.distributedFileDir()```接口获取本应用沙箱内的分布式路径。
-3) 在此路径下可以像操作本地文件一样,操作远端设备的文件,比如可以进行创建、删除、读写文件和目录。
+3) 在此路径下可以像操作本地文件一样,操作远端设备的文件,比如可以进行创建、删除、读写文件和目录。
4) 在一端设备上进行步骤3的文件操作后,在组网的所有分布式设备上都可以查看相应的修改。
## 相关仓
diff --git a/interfaces/innerkits/native/BUILD.gn b/interfaces/innerkits/native/BUILD.gn
index 56bfb871c9eb20cc7ab207d82cd95bb2b1cf39f0..06431810e9e2307a97774ee766c4fbec51afd618 100644
--- a/interfaces/innerkits/native/BUILD.gn
+++ b/interfaces/innerkits/native/BUILD.gn
@@ -14,9 +14,7 @@ import("//build/ohos.gni")
import("//foundation/filemanagement/dfs_service/distributedfile.gni")
config("private_config") {
- include_dirs = [
- "../../../frameworks/native",
- ]
+ include_dirs = [ "../../../frameworks/native" ]
configs = [ "//build/config/compiler:exceptions" ]
}
@@ -26,9 +24,7 @@ config("public_config") {
}
ohos_shared_library("libdistributedfile_innerkits") {
- sources = [
- "../../../frameworks/native/service_proxy.cpp"
- ]
+ sources = [ "../../../frameworks/native/service_proxy.cpp" ]
configs = [ ":private_config" ]
@@ -39,10 +35,8 @@ ohos_shared_library("libdistributedfile_innerkits") {
"safwk:system_ability_fwk",
]
- deps = [
- "${utils_path}:libdistributedfileutils",
- ]
+ deps = [ "${utils_path}:libdistributedfileutils" ]
- part_name = "filemanagement_dfs_service"
+ part_name = "dfs_service"
subsystem_name = "filemanagement"
-}
\ No newline at end of file
+}
diff --git a/ohos.build b/ohos.build
index 8f7cc1aca482baf885a6d84a11ec083e4e71ac0a..b56a401897715fbc40149645442bb2a508ef6288 100755
--- a/ohos.build
+++ b/ohos.build
@@ -1,7 +1,7 @@
{
"subsystem": "filemanagement",
"parts": {
- "filemanagement_dfs_service": {
+ "dfs_service": {
"variants": [
"wearable",
"phone"
diff --git a/services/BUILD.gn b/services/BUILD.gn
index c68473d73742f91f25171e3283ac8976f32457d5..d9afcb9c6a9f95152312c9bcc9b0cbf612283641 100644
--- a/services/BUILD.gn
+++ b/services/BUILD.gn
@@ -16,29 +16,30 @@ import("//foundation/filemanagement/dfs_service/distributedfile.gni")
ohos_sa_profile("distributedfile_sa_profile") {
sources = [
- "4901.xml",
- "4902.xml"]
- part_name = "filemanagement_dfs_service"
+ "4901.xml",
+ "4902.xml",
+ ]
+ part_name = "dfs_service"
}
ohos_prebuilt_etc("distributedfile_etc") {
source = "distributedfile.cfg"
relative_install_dir = "init"
- part_name = "filemanagement_dfs_service"
+ part_name = "dfs_service"
subsystem_name = "filemanagement"
}
ohos_prebuilt_etc("distributed_file.para") {
source = "distributed_file.para"
- part_name = "filemanagement_dfs_service"
+ part_name = "dfs_service"
module_install_dir = "etc/param"
}
group("services_target") {
deps = [
+ ":distributed_file.para",
":distributedfile_etc",
":distributedfile_sa_profile",
- ":distributed_file.para",
"distributedfiledaemon:distributedfiledaemon_target",
"distributedfileservice:distributedfileservice_target",
]
diff --git a/services/distributedfiledaemon/BUILD.gn b/services/distributedfiledaemon/BUILD.gn
index 135b4f3db3c131ff084f46ee553931dbaf4d8061..35e054121f1e792977b6717f700374c04163f150 100755
--- a/services/distributedfiledaemon/BUILD.gn
+++ b/services/distributedfiledaemon/BUILD.gn
@@ -49,7 +49,7 @@ ohos_shared_library("libdistributedfiledaemon") {
]
configs = [ "${utils_path}:compiler_configs" ]
- part_name = "filemanagement_dfs_service"
+ part_name = "dfs_service"
subsystem_name = "filemanagement"
}
diff --git a/services/distributedfileservice/BUILD.gn b/services/distributedfileservice/BUILD.gn
index bd1b65672168c450940de43a755ed2feb3190561..d59374d7139833a32e5860f7eaf5d6806990ff6e 100644
--- a/services/distributedfileservice/BUILD.gn
+++ b/services/distributedfileservice/BUILD.gn
@@ -24,6 +24,7 @@ ohos_shared_library("libdistributedfileservice") {
configs = [ "${utils_path}:compiler_configs" ]
external_deps = [
+ "aafwk_standard:want",
"ability_runtime:app_manager",
"ability_runtime:want",
"appexecfwk_standard:appexecfwk_base",
@@ -38,7 +39,7 @@ ohos_shared_library("libdistributedfileservice") {
"../../interfaces/innerkits/native:libdistributedfile_innerkits",
]
- part_name = "filemanagement_dfs_service"
+ part_name = "dfs_service"
subsystem_name = "filemanagement"
}
diff --git a/utils/BUILD.gn b/utils/BUILD.gn
index 620c63d5fc55535ca6c3c350223050fe391719a8..f5169272e2d55fc69c8364ce83550ff245cb849a 100755
--- a/utils/BUILD.gn
+++ b/utils/BUILD.gn
@@ -65,6 +65,6 @@ ohos_shared_library("libdistributedfileutils") {
"//utils/native/base:utils",
]
- part_name = "filemanagement_dfs_service"
+ part_name = "dfs_service"
subsystem_name = "filemanagement"
}