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

Make FsType's raw type public #1187

Merged
merged 1 commit into from Feb 13, 2020
Merged

Make FsType's raw type public #1187

merged 1 commit into from Feb 13, 2020

Conversation

MikailBag
Copy link
Contributor

Motivation

Currently, FsType API is limited. In fact, only operation is supports is comparison with one of well-known IDs.
But:

  • This list is incomplete. For example, it misses cgroupfs and cgroup2fs.
  • This approach doesn't work with custom FSs.

@asomers
Copy link
Member

asomers commented Feb 12, 2020

That's certainly a real problem. I think this solution is fair. But could you please add a CHANGELOG entry? Also, we would appreciate PRs that add any missing values.

@MikailBag
Copy link
Contributor Author

Thanks for review!
I added CHANGELOG entry.
I can't submit PR for CGROUP_SUPER_MAGIC and CGROUP2_SUPER_MAGIC until libc PR is merged.

@asomers
Copy link
Member

asomers commented Feb 13, 2020

Sorry, but you'll need to rebase.

@MikailBag
Copy link
Contributor Author

Done

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 bot added a commit that referenced this pull request Feb 13, 2020
1187: Make FsType's raw type public r=asomers a=MikailBag

# Motivation
Currently, `FsType` API is limited. In fact, only operation is supports is comparison with one of well-known IDs.
But:
* This list is incomplete. For example, it misses cgroupfs and cgroup2fs.
* This approach doesn't work with custom FSs.

Co-authored-by: Mikail Bagishov <bagishov.mikail@yandex.ru>
@bors
Copy link
Contributor

bors bot commented Feb 13, 2020

Build succeeded

@bors bors bot merged commit 2c1351b into nix-rust:master Feb 13, 2020
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.

None yet

2 participants