Skip to content

Question about spiffs_obj_id sizing #283

Open
@jcwren

Description

@jcwren

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions