-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Alpha state #1
Comments
Awesome. I just put it out as alpha to gather some feedback on the API, do you have any?
etc. |
Ah neat, and thanks for the reply! I'll get back to you on the API once I've had a real go at it. |
Right so, having a go at using this and finding it rather,, difficult. Some feedback/thoughts/suggesion:
You mention in the docs the |
Thank you for the feedback, this is helpful! I'm currently using these bindings and getting actual experience myself.
The problem is this allocation is used in self-referential ways, so I need to fix it in place :/ In case you're good with Pin, do you see a way to use that here?
Yeah, so I'm tending towards changing this to take the T and hand it out on demand. I already have Filesystem/File and FilesystemWith/FileWith, thinking of making the (second) versions that own the references the only interface, and adding a way to borrow out the references.
This is done to follow
See above, I think the self-referentiality prevents this. I may be misunderstanding your suggestion, can you clarify?
Granted in my current use case I only have one file open at a time (store/retrieve blob), so I've considered this too, but it would prevent having more than one file open (unless the second borrows out the filesystem from the first etc.). -- There's one more complication I've run into, which is that these files really need to be closed (or you run into problems caused by littlefs assumptions vs compiler optimizations). -- We plan to use littlefs for our new FIDO2 firmware for SoloKeys, so this library will definitely be iterated/improved/tested etc. I understand @jonas-schievink is evaluating use on Cortex-A (iqlusioninc/usbarmory.rs#39) so I hope for a bright future (with possible RIIR...). |
Regarding this, I believe I do still want to mirror std::fs, but see your point! In https://github.com/nickray/littlefs2/pull/6 I am adding In case you are wondering what's up with
The gist of said PR is to make the file/directory constructors unsafe, and instead add closure-based safe APIs that:
With file/directory allocations handled in this way, of your original remarks the following remain (correct me if I missed something):
Thanks for your feedback! |
neat! looks much easier but i'll have to have a play with it once you've merged it in, i haven't had any more time to look at our littlefs stuff recently / got stalled on a segfault somewhere and had to move on, so, will update you when i have a chance.
sounds like a good approach to me! |
Fix RAM macros to configure minimum amount of lookahead.
Hi hi, thanks for making a neat thing ^_^
I'm about to use littlefs in a project and I was just wondering whether there are outstanding issues / what you're waiting for for a non-alpha v0.x release?
Cheers,
Ryan
The text was updated successfully, but these errors were encountered: