mirror of
https://github.com/apache/nuttx.git
synced 2025-12-12 22:05:54 +08:00
fs: Dump the list of files when the file description runs out
Signed-off-by: zhangshoukui <zhangshoukui@xiaomi.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user