Skip to content
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

vfs: error when opening files from constfs filesystem #93

Open
maikerlab opened this issue Apr 26, 2024 · 0 comments
Open

vfs: error when opening files from constfs filesystem #93

maikerlab opened this issue Apr 26, 2024 · 0 comments

Comments

@maikerlab
Copy link

maikerlab commented Apr 26, 2024

In my RIOT application I initialize the constfs file system and some private data in a c-file, exactly like in the filesystem example (with vfs_mount).
I can also open and read the contents inside the file (e. g. with fopen("/const/dac", "r") and open("/const/dac", O_RDONLY))
Reading from shell is also possible (e.g. with vfs r /const/dac 15 0)

In my Rust code, I first call the external C-Function, where vfs_mount gets called.
When iterating over all mount points with vfs::Mount::all() and files inside /const, everything looks as expected and the desired files exist.
But when trying to open a file (e.g. with vfs::File::open("/const/dac"), I get an error (-2 ENOENT 2 No such file or directory)

I could reproduce this error on native and nucleo-f429zi board

@maikerlab maikerlab changed the title vfs: failed t cannot open files from constfs filesystem vfs: error when opening files from constfs filesystem Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant