how to increase # of VFS handles?

tschak909
Posts: 36
Joined: Mon Oct 26, 2020 8:17 pm

how to increase # of VFS handles?

Postby tschak909 » Sat Feb 11, 2023 8:15 pm

We have a unique situation where we need more than 8 VFS handles.

We can see that we can change the value inside the VFS code inside ESP-IDF, and it works, but is there a way to pass a configuration option, instead of having to fork and make this change in-code?

-Thom

ESP_Sprite
Posts: 9711
Joined: Thu Nov 26, 2015 4:08 am

Re: how to increase # of VFS handles?

Postby ESP_Sprite » Sun Feb 12, 2023 1:39 am

I don't think the amount of VFS handles itself is bound. Do you mean the max VFS filesystems you can register (#define VFS_MAX_COUNT 8)? There's no easy way to change that indeed. You could copy the vfs component to your own project (components in a project will override components in esp-idf of the same name) as a short term fix, and for the longer term, I think this could be implemented as a Menuconfig option in esp-idf. Can you file an issue for this, or if you're willing, create a patch and a pull request for that? That way we can keep track of it.

tschak909
Posts: 36
Joined: Mon Oct 26, 2020 8:17 pm

Re: how to increase # of VFS handles?

Postby tschak909 » Sun Feb 12, 2023 4:43 am

Let me see if I can make a patch, if not, i'll file an issue. :)

-Thom

Who is online

Users browsing this forum: Bing [Bot] and 102 guests