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

!51 【回合到monthly1018】修复ffconf.h中宏FF_FS_LOCK设置不合理的问题

Merge pull request !51 from zhangdengyu/cherry-pick-1671262063
......@@ -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.
先完成此消息的编辑!
想要评论请 注册