fs: Dump the list of files when the file description runs out
Signed-off-by: zhangshoukui <zhangshoukui@xiaomi.com>
This commit is contained in:
parent
8e4e09be2d
commit
baa716a85d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue