-
Notifications
You must be signed in to change notification settings - Fork 866
lfs_disk_entry #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Ah, these are good ideas. Though this turns into a tradeoff between storage-consumption and flexibility.
One idea I do want to get to is storing files inline in dir entries. At the moment each file takes a minimum of one erase unit, which is usually 512B-4KB. For small files, say <256B, you could save a lot of overhead and erase cycles by storing the data in the dir entry. In this case you could use That's sort of what |
I confirm that alen is very useful, for example on my side I use attributes to store the modification data of an entry. |
Oh! @guillaumerems, did you modify littlefs to get attributes working? Or was this on a different filesystem? |
I modified littlefs and it works very well ;) see the new issue I opened with the modification I made |
I'm going to close this but feel free to reopen |
alen and elen seem to be a bit superfluous.
I'd fold them in some spare bits in type
or trim nlen (and thus LFS_NAME_MAX) to put them there.
Eventually.
The text was updated successfully, but these errors were encountered: