-
Notifications
You must be signed in to change notification settings - Fork 10
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
Comments
maikerlab
changed the title
vfs: failed t cannot open files from constfs filesystem
vfs: error when opening files from constfs filesystem
Apr 26, 2024
|
chrysn
added
the
wait-for-breaking-0.9
Change that is held for the 0.9 release, for it is a breaking change
label
Aug 20, 2024
I stand corrected: This is a different bug than the old issue 8. Investigating… |
chrysn
added a commit
that referenced
this issue
Aug 21, 2024
This fixes a severe bug where file names were passed to the C API that expects nul-termination. Closes: #93
chrysn
removed
the
wait-for-breaking-0.9
Change that is held for the 0.9 release, for it is a breaking change
label
Aug 21, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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")
andopen("/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
andnucleo-f429zi
boardThe text was updated successfully, but these errors were encountered: