New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to config the maximum number of VFS entries. (IDFGH-9641) #10987
Conversation
|
Thanks for your contribution. |
sha=6beeecbbcfd5b76d1951f6fbf2289faed1768f32 |
@@ -33,15 +33,14 @@ | |||
|
|||
static const char *TAG = "vfs"; | |||
|
|||
#define VFS_MAX_COUNT 8 /* max number of VFS entries (registered filesystems) */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One note, here I had to re-introduce VFS_MAX_COUNT macro so it's still defined even if CONFIG_VFS_SUPPORT_IO is not set. Otherwise the build would fail when CONFIG_VFS_SUPPORT_IO is disabled.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your time and sorry for wasting it on this not fully functional pull request!
I'm now instead following a pattern I find all over the place in the ESP-IDF code base.
Make sure that the VFS_MAX_COUNT macro so it's still defined even if CONFIG_VFS_SUPPORT_IO is not set - and therefore the macro CONFIG_VFS_MAX_COUNT is not defined.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many thanks in advance for having another look at this pull request.
@@ -33,15 +33,14 @@ | |||
|
|||
static const char *TAG = "vfs"; | |||
|
|||
#define VFS_MAX_COUNT 8 /* max number of VFS entries (registered filesystems) */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your time and sorry for wasting it on this not fully functional pull request!
I'm now instead following a pattern I find all over the place in the ESP-IDF code base.
@oliverschmidt thanks again for the contribution! I have ended up merging the first version of your change (6beeecb, in |
Thanks for the merge - and the explanation :-)
For sure it does! |
Our project currently needs a copy of the vfs component solely to have an increased maximum number of VFS entries: FujiNetWIFI/fujinet-firmware@8598182