Menu

Has anybody implemented their own filesystem?

Reddit r/esp32·u/2g4r_tofu·7 days ago
#tnvwT2hf
#filesystem#point#anybody#implemented#working
Reading 0:00
15s threshold

I'm working on my UNIX project (and I've reached a point where the terminal feels like linux!)

https://github.com/mr1337357/ESP-OS

and I'm at the point where I want a /dev/ folder to represent IO devices. Are there examples of people implementing a filesystem? I'm not sure where to store info like which directory a DIR * points to when it's given back to me by an app.

EDIT: nevermind I realized I could cast a larger structure pointer to a DIR * and return that from opendir to save context in it