-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Add support for attributes in VFS (IDFGH-13326) #14248
Comments
@josesimoes what would be the equivalent API you would use on a POSIX platform for this purpose? |
I suppose the more suitable one would be I would suggest a more generic approach, such as providing |
Just a note:
That part only refers to using POSIX itself does not specify that file operations such as The problem is that there is no "standardised" way to work with arbitrary user attributes, the closes thing is probably either
(In theory you could also abuse I would be hesitant to implement custom solution for the sake of portability. PS: @josesimoes you mentioned that both FatFS and SPIFFS have support for attributes, did you mean the |
@haberturdeur here they are: littlefs has lfs_getattr FatFS has chmod |
Is your feature request related to a problem?
Currently virtual file system doesn't provide support for attributes, which is something rather "basic" in a file system.
Describe the solution you'd like.
This doesn't need to be anything fancy, simple ones like hidden, read-only, system would be quite enough.
All file systems that VFS tapps into offer this: FatFS, littlefs, SPIFFS.
Describe alternatives you've considered.
No response
Additional context.
Stumbled into this when making the migration from SPIFFs to littlefs for the flash storage in .NET nanoFramework nanoframework/nf-interpreter#2911.
Already discussed it with the author of littlefs for ESP extension. Please see issue here joltwallet/esp_littlefs#196.
It seems that there is path forward, still I believe it would be nice to have a couple of API to get and set attributes.
The text was updated successfully, but these errors were encountered: