Skip to content

Shared FD storage between FS and Net #31

@jaybosamiya-ms

Description

@jaybosamiya-ms

Currently, we end up having two different type-distinct namespaces for FileSystem FDs and Socket FDs. This requires the Linux shim to maintain its own storage for FDs that translates between the two. It would likely be better to remove this indirect storage, and instead provide a safe way to maintain the two types of FDs, stored in LiteBox itself, such that the shim doesn't need to deal with the storage.

A fundamental issue with this is that it is unclear whether it is feasible to make a clean type-based separation between the types, and statically prevent FD-confusion bugs (for users who are not a POSIX-like shim, but have better higher-level concepts available), while also giving the simple integer-based handling that the Linux-shim would prefer.

I think with some careful design, this may be feasible, but the details do need to be fleshed out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestlayer-liteboxFocusing on the main litebox crate itself

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions