Closed Slion closed 1 month ago
That's because littlefs file stat does not provide those block size and block stats. See: https://github.com/oyama/pico-vfs/blob/e28888a6ac89541c103cde7f77b4e057305a877e/src/filesystem/littlefs.c#L255
If you init your stats structure with zeros they remain in place:
memset(&stats,0,sizeof(stats));
File size / block / blocks: 13 / 0 / 0
I've setup my file system as follow:
Then I'm doing some basic tests and printing some of that file stats:
Here is the output I get:
Block size and block don't make sense to me. Could it be they are not correct?