Skip to content

Conversation

@Jakob-Naucke
Copy link
Contributor

Since rust-lang/libc is now using the correct data type on s390x (c_uint) for
statfs constants, the s390x exemptions in the statfs MAGIC definitions like
EXT4_SUPER_MAGIC can be removed.

Signed-off-by: Jakob Naucke [email protected]

CHANGELOG.md Outdated
- Added limited Fuchsia support (#[1285](https://github.com/nix-rust/nix/pull/1285))
- Added `getpeereid` (#[1342](https://github.com/nix-rust/nix/pull/1342))
### Fixed
- Removed s390x exemptions from `nix::sys::statfs` `MAGIC` constants, since the corresponding types in `libc` have been corrected.
Copy link
Member

Choose a reason for hiding this comment

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

How about "Define *_MAGIC constants on Linux s390x", and include a PR link?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure! Have updated accordingly.

CHANGELOG.md Outdated
- Added limited Fuchsia support (#[1285](https://github.com/nix-rust/nix/pull/1285))
- Added `getpeereid` (#[1342](https://github.com/nix-rust/nix/pull/1342))
### Fixed
- Define `*_MAGIC` filesystem constants on Linux s390x (#[1372](https://github.com/nix-rust/nix/pull/1342))
Copy link
Member

Choose a reason for hiding this comment

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

Whoops! Looks like a copy/paste error here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Whoops indeed! Updated.

Since rust-lang/libc is now using the correct data type on s390x (c_uint) for
statfs constants, the s390x exemptions in the statfs MAGIC definitions like
EXT4_SUPER_MAGIC can be removed.

Signed-off-by: Jakob Naucke <[email protected]>
@Jakob-Naucke
Copy link
Contributor Author

Jakob-Naucke commented Feb 2, 2021

Double whoops, reset to a commit that was even with upstream, which closed the pull request. Sorry!

@Jakob-Naucke Jakob-Naucke reopened this Feb 2, 2021
Copy link
Member

@asomers asomers left a comment

Choose a reason for hiding this comment

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

bors r+

@bors bors bot merged commit e7c7021 into nix-rust:master Feb 7, 2021
@Jakob-Naucke Jakob-Naucke mentioned this pull request Feb 9, 2021
Jakob-Naucke added a commit to Jakob-Naucke/kata-containers that referenced this pull request Mar 29, 2021
to pull in the chain of rust-lang/libc#1999,
nix-rust/nix#1372, and
kata-containers/cgroups-rs#38. This adds statfs
constants on s390x. cgroups-rs 0.2.4 also contains this fix, but let's
move to the latest 0.2.5 right away.

Fixes: kata-containers#1204

Signed-off-by: Jakob Naucke <[email protected]>
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