mirror of
https://github.com/openharmony/third_party_FatFs.git
synced 2026-07-01 03:23:12 -04:00
!50 fix:修复ffconf.h中宏FF_FS_LOCK设置不合理的问题
Merge pull request !50 from zhangdengyu/20221214_fatfs_fix
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user