Skip to content
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

rust: Drop dependency on memfd #4597

Merged
merged 2 commits into from
Sep 15, 2023
Merged

rust: Drop dependency on memfd #4597

merged 2 commits into from
Sep 15, 2023

Conversation

cgwalters
Copy link
Member

composepost: Use O_TMPFILE, not memfd

An anonymous tmpfile is strictly better than memfd for a case
like this, where we want to be able to page back to disk if needed
for some reason.

Prep for dropping a dependency on the memfd crate.


rust: Drop dependency on memfd

The immediate motivation here is to ideally get back to one version
of rustix - we have just too many versions of nix and rustix.

The slight additional ergonomics of the memfd crate aren't
really worth it over using the already-safe rustix interface
directly.


An anonymous tmpfile is strictly better than memfd for a case
like this, where we want to be able to page back to disk if needed
for some reason.

Prep for dropping a dependency on the `memfd` crate.
The immediate motivation here is to ideally get back to one version
of `rustix` - we have just too many versions of `nix` and `rustix`.

The slight additional ergonomics of the `memfd` crate aren't
really worth it over using the already-safe rustix interface
directly.
Copy link
Member

@jmarrero jmarrero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@cgwalters cgwalters merged commit 39df152 into coreos:main Sep 15, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants