Rust-for-Linux / linux

Adding support for the Rust language to the Linux kernel.
https://rust-for-linux.com
Other
3.84k stars 400 forks source link

Support for filesystem abstractions #1004

Open ariel-miculas opened 1 year ago

ariel-miculas commented 1 year ago

I've opened this issue to track the missing pieces for the initial rust filesystem abstractions. I have backported @wedsonaf's branch fs on top of rust-next to get a sense about the missing modules, see rust-next-fs. Here's a list of the missing parts:

The dependencies between the modules are:

graph One strategy would be to start bottom-up, starting with io_buffer, page, iov_iter, cred and user_ptr and then continue with the rest. Remains to be seen how much of the code can be backported as it is and how much it needs to be changed.

jyizheng commented 7 months ago

I am happy to contribute to this issue.

ariel-miculas commented 7 months ago

The latest development is this patch series by Wedson Almeida which introduces abstractions for read-only filesystems.

ariel-miculas commented 1 month ago

FYI Wedson recently sent another patch series for the filesystem abstractions: https://lore.kernel.org/rust-for-linux/20240514131711.379322-1-wedsonaf@gmail.com/