Skip to content

Commit

Permalink
fs: Dump the list of files when the file description runs out
Browse files Browse the repository at this point in the history
Signed-off-by: zhangshoukui <[email protected]>
  • Loading branch information
Zhangshoukui authored and xiaoxiang781216 committed Sep 18, 2024
1 parent 8e4e09b commit baa716a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/inode/fs_files.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit baa716a

Please sign in to comment.