!50 fix:修复ffconf.h中宏FF_FS_LOCK设置不合理的问题

Merge pull request !50 from zhangdengyu/20221214_fatfs_fix
This commit is contained in:
openharmony_ci
2022-12-15 06:46:56 +00:00
committed by Gitee
+2 -1
View File
@@ -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