You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/03/28 20:09:06 UTC

[GitHub] [incubator-nuttx] pkarashchenko commented on a change in pull request #5894: fs:add _POSIX_OPEN_MAX limit to files_extend

pkarashchenko commented on a change in pull request #5894:
URL: https://github.com/apache/incubator-nuttx/pull/5894#discussion_r836805605



##########
File path: fs/inode/fs_files.c
##########
@@ -71,6 +71,11 @@ static int files_extend(FAR struct filelist *list, size_t row)
       return 0;
     }
 
+  if (row * CONFIG_NFILE_DESCRIPTORS_PER_BLOCK > _POSIX_OPEN_MAX)

Review comment:
       ```suggestion
     if (row * CONFIG_NFILE_DESCRIPTORS_PER_BLOCK > OPEN_MAX)
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org