From 0988dcde34f4c42e8e7abe19429be7d63ecc1a4a Mon Sep 17 00:00:00 2001 From: zhangdengyu Date: Tue, 31 Jan 2023 10:46:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0LOSCFG=5FMAX=5FOPEN=5F?= =?UTF-8?q?DIRS=E6=A0=87=E8=AF=86=E6=9C=80=E5=A4=A7=E5=8F=AF=E6=89=93?= =?UTF-8?q?=E5=BC=80dir=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 方案描述: 提供LOSCFG_MAX_OPEN_DIRS宏定义,标识最大可打开dir数量。 BREAKING CHANGE: 新增LOSCFG_MAX_OPEN_DIRS宏定义,标识最大可打开dir数量。 Close:#I6BVYZ Signed-off-by: zhangdengyu --- components/fs/vfs/vfs_config.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/fs/vfs/vfs_config.h b/components/fs/vfs/vfs_config.h index a3538a34..aeab60ff 100644 --- a/components/fs/vfs/vfs_config.h +++ b/components/fs/vfs/vfs_config.h @@ -138,4 +138,9 @@ #define MAX_DIRENT_NUM 14 // 14 means 4096 length buffer can store 14 dirent, see struct DIR +/* max number of open directories */ +#ifndef LOSCFG_MAX_OPEN_DIRS +#define LOSCFG_MAX_OPEN_DIRS 10 +#endif + #endif