I am trying to get an idea of how many files can be stored in a SPIFFS image. I've been reading about block sizes and page sizes and how that relates to flash lifetime but I haven't decoded how that translates to the number of files. I think maybe if I am reading correctly, the smallest file uses two pages, so the maximum number of different files would be something like #pages/2 ?
The reason I am asking is I am considering a setup that creates 1 or 2 small files on a daily basis. I am interested to calculate how many days the system could run before it needed to start deleting old files because it was running out of file identifiers. For sake of argument we will assume that the files are small enough that the number of files is the limiting factor, not the size of the files.