From baa716a85dd4445962560e6c3d203ba7a950e38d Mon Sep 17 00:00:00 2001 From: zhangshoukui Date: Mon, 19 Aug 2024 19:35:05 +0800 Subject: [PATCH] fs: Dump the list of files when the file description runs out Signed-off-by: zhangshoukui --- fs/inode/fs_files.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/inode/fs_files.c b/fs/inode/fs_files.c index fbc4b0b107..ea8fc30241 100644 --- a/fs/inode/fs_files.c +++ b/fs/inode/fs_files.c @@ -132,6 +132,7 @@ static int files_extend(FAR struct filelist *list, size_t row) if (CONFIG_NFILE_DESCRIPTORS_PER_BLOCK * orig_rows > OPEN_MAX) { + files_dumplist(list); return -EMFILE; }