未验证 提交 51d762f4 编写于 作者: O openharmony_ci 提交者: Gitee

!52 【回合到3.1-Release】修复ffconf.h中宏FF_FS_LOCK设置不合理的问题

Merge pull request !52 from zhangdengyu/cherry-pick-1671262511
......@@ -10,6 +10,7 @@
#include "los_config.h"
#else
#include "fs_config.h"
#include "vfs_config.h"
#endif
#ifdef __cplusplus
......@@ -315,7 +316,7 @@ enum STORAGE {
#ifndef __LITEOS_M__
#define FF_FS_LOCK CONFIG_NFILE_DESCRIPTORS
#else
#define FF_FS_LOCK 64
#define FF_FS_LOCK (CONFIG_NFILE_DESCRIPTORS + LOSCFG_MAX_OPEN_DIRS - MIN_START_FD)
#endif
/* The option FF_FS_LOCK switches file lock function to control duplicated file open
/ and illegal operation to open objects. This option must be 0 when FF_FS_READONLY
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册