You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a board with a 16MB flash on it. When I configured SPIFFS way back when I declared spiffs_obj_id as a uint16_t. The system has been working well enough for a long time, but I also don't create a lot files. There's normally about 20 files, and one of them is a large file that's basically a database that gets a fair number of writes to it. As I was looking at the configuration for a different reason, it appears I should have declared spiffs_obj_id to be a uint32_t.
What are the implications of it being too small? I've spent a while trying to follow what happens to obj_id, but there's so many references to it in different structures that it rapidly gets confusing to keep track of what's what.
As near as I can suss out, as long as I have less than 32766 files ('objects') on the file system, I should be OK?
Thanks!
The text was updated successfully, but these errors were encountered:
Hi,
If I recall correctly, the msb is an index bit, so max nbr of files is
16383. Magnitudes around 20 files should definitely be ok.
Den tors 11 nov. 2021 00:51JCWren ***@***.***> skrev:
I have a board with a 16MB flash on it. When I configured SPIFFS way back
when I declared spiffs_obj_id as a uint16_t. The system has been working
well enough for a long time, but I also don't create a lot files. There's
normally about 20 files, and one of them is a large file that's basically a
database that gets a fair number of writes to it. As I was looking at the
configuration for a different reason, it appears I should have declared
spiffs_obj_id to be a uint32_t.
What are the implications of it being too small? I've spent a while trying
to follow what happens to obj_id, but there's so many references to it in
different structures that it rapidly gets confusing to keep track of what's
what.
As near as I can suss out, as long as I have less than 32766 files
('objects') on the file system, I should be OK?
Thanks!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#283>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABG42V5RM4L6EZMGTMSKCJTULMAOJANCNFSM5HZFMLQQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
I have a board with a 16MB flash on it. When I configured SPIFFS way back when I declared
spiffs_obj_id
as auint16_t
. The system has been working well enough for a long time, but I also don't create a lot files. There's normally about 20 files, and one of them is a large file that's basically a database that gets a fair number of writes to it. As I was looking at the configuration for a different reason, it appears I should have declaredspiffs_obj_id
to be auint32_t
.What are the implications of it being too small? I've spent a while trying to follow what happens to
obj_id
, but there's so many references to it in different structures that it rapidly gets confusing to keep track of what's what.As near as I can suss out, as long as I have less than 32766 files ('objects') on the file system, I should be OK?
Thanks!
The text was updated successfully, but these errors were encountered: