kinode-dao / kinode

Kinode OS runtime
https://kinode.org
Apache License 2.0
24 stars 7 forks source link

feature: `vfs` should close files when possible #327

Open nick1udwig opened 1 month ago

nick1udwig commented 1 month ago

Is your feature request related to a problem? Please describe. vfs maintains a map of open files. There are a variety of operations that open a file and then do some thing to it, but don't need to maintain any state thereafter wrt to the file (e.g., reading the entire file, or getting the length, or getting the metadata). However, we almost never close files.

Describe the solution you'd like If there isn't some ongoing operation wrt to the file, it should be closed after the operation.

nick1udwig commented 1 month ago

FYI @bitful-pannul -- I know you're occupied with other stuff, but this might be your wheelhouse sometime in the future.