feat: fs增加注册接口
方案描述:
增加注册机制, 并增加重复注册判断
BREAKING CHANGE:
fs增加注册接口
新增API:
int LOS_FsRegister(const char *fsType, const struct MountOps *fsMops,
const struct FileOps *fsFops, const struct FsManagement *fsMgt);
fix #I611L2
Signed-off-by: wangchen <wangchen240@huawei.com>
https://gitee.com/openharmony/kernel_liteos_m/issues/I611L2
This commit is contained in:
@@ -39,7 +39,6 @@ static_library("posix_test") {
|
||||
"src/ctype/tolower_test.c",
|
||||
"src/ctype/toupper_test.c",
|
||||
"src/errno/strerror_test.c",
|
||||
"src/fs/posix_fs_func_test.c",
|
||||
"src/math/math_func_test.c",
|
||||
"src/mqueue/mqueue_func_test.c",
|
||||
"src/posix_test.c",
|
||||
@@ -65,7 +64,9 @@ static_library("posix_test") {
|
||||
"//test/xts/tools/hctest/include",
|
||||
"src",
|
||||
]
|
||||
|
||||
if (defined(LOSCFG_SUPPORT_FATFS) || defined(LOSCFG_SUPPORT_LITTLEFS)) {
|
||||
sources += [ "src/fs/posix_fs_func_test.c" ]
|
||||
}
|
||||
if (!defined(LOSCFG_COMPILER_ICCARM)) {
|
||||
cflags = [ "-Wno-error" ]
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user