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

Add mount syscall #494

Merged
merged 1 commit into from Jan 12, 2023
Merged

Add mount syscall #494

merged 1 commit into from Jan 12, 2023

Conversation

SUPERCILEX
Copy link
Contributor

@SUPERCILEX SUPERCILEX commented Dec 29, 2022

My flag management is absolutely terrible, any suggestions would be appreciated. :) The goal is to try and only provide applicable flags (which is maybe a hopeless cause), but that means having partially overlapping sets thereby complicating everything. Also, StatVfsMountFlags are related, not sure if we should somehow combine things.

In another PR, I'll add umount.

Closes #491

Copy link
Contributor

@cgwalters cgwalters left a comment

Choose a reason for hiding this comment

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

I was a little uncertain at first at providing higher level APIs instead of just exposing the syscall, but I think you have captured all the use cases I can think of. (I looked through man 8 mount for the high level operations)

So a somewhat superficial LGTM.

@SUPERCILEX
Copy link
Contributor Author

Cool beans, as long as we agree on the API surface we can muck around with the flags later if they become an issue.

@SUPERCILEX
Copy link
Contributor Author

Every nightly check is currently broken because of a missing fuschia build.

@sunfishcode
Copy link
Member

The fuchsia fix is now on main, so rebasing on main should fix the CI here. I also don't have time today to review this, but at a superficial glance this looks good.

Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
@SUPERCILEX
Copy link
Contributor Author

Yeep, fixed.

@sunfishcode sunfishcode merged commit 45c4696 into bytecodealliance:main Jan 12, 2023
@sunfishcode
Copy link
Member

Looks good, thanks!

@SUPERCILEX
Copy link
Contributor Author

Woohoo! Unmount: #512

sunfishcode pushed a commit that referenced this pull request Jan 17, 2023
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>

Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
sunfishcode pushed a commit that referenced this pull request Jan 17, 2023
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>

Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
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.

Add mount syscall?
3 participants