You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that canonicalize requires the path to exist, so if the file does not exist yet, then we panic.
I assume this is not the expected behavior, because I think calling .path is the one and only way to create a new file, but right now, AltrootFS panics before I can create the file.
The text was updated successfully, but these errors were encountered:
Thanks for the bug report. Looks like this [1] is the root issue, AFAIC there is no clear alternative as of yet.
I am currently in the process of refactoring the API/traits [2], and I will keep this issue in mind when getting to the Altroot/Chroot implementation, and try to find a working solution.
Minimal repro:
If
/tmp/dummy
does not exist on your filesystem, the above code panics here:rust-vfs/src/altroot.rs
Line 57 in aa05dfd
It seems that canonicalize requires the path to exist, so if the file does not exist yet, then we panic.
I assume this is not the expected behavior, because I think calling
.path
is the one and only way to create a new file, but right now, AltrootFS panics before I can create the file.The text was updated successfully, but these errors were encountered: