mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 20:56:47 +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)
|
if (CONFIG_NFILE_DESCRIPTORS_PER_BLOCK * orig_rows > OPEN_MAX)
|
||||||
{
|
{
|
||||||
|
files_dumplist(list);
|
||||||
return -EMFILE;
|
return -EMFILE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user