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
proposal: x/sys/unix: fsconfig system call support #59537
Comments
Change https://go.dev/cl/484995 mentions this issue: |
@ianlancetaylor , we talked to @AlexeyPerevalov and decided to create a new review for this (https://go-review.googlesource.com/c/sys/+/484995), this fixed issues you mentioned on the previous one, PTAL |
This is a very complicated system call. Please document the suggested Go API in this issue so that people can discuss it. In particular I wonder whether |
I wrote a version few weeks ago with |
I can suggest to use
|
Hi, thanks for moving this forward, I too would like to use the syscall. What is the next step for the review, and can I help? |
@stagnation AFAIR, the next step is to define the interface, I've suggested few of them:
I think it's possible to move it forward if people and maintainers will be agreed on the interface. It's not a problem to implement any of them. WDYT? |
I do not have a strong opinion, I can see either option working fine. My main use case is mountat that just uses the In short:
|
@ianlancetaylor would you mind to merge version that uses |
Go is, of course, a strongly typed language. I don't think we should drop back to empty interface. Besides the loss of type checking, it's harder to avoid an allocation when using an interface value. It seems to me that we should have multiple |
@ianlancetaylor I don't think that this is a bad idea, semantically this is the same, so we can have one version for Maybe it's better to have versions for all of |
Sounds plausible. I'd like to see the API. |
I guess API may look like this (description i.e. comments are just little explanation -- not the API docs now):
@ianlancetaylor WDYT? |
Looks good to me. https://github.com/torvalds/linux/blob/master/fs/fsopen.c#L346 . Here it is just "aux", the polymorphic argument
|
@stagnation we can call it e.g.
For sure, I think we should explain that in docs for this function. |
Thanks, turning this into a proposal. |
Great, I'll prepare a patch-set this week. Thanks! |
API proposal is in #59537 (comment)
What is the feature?
Support for
fsconfig
system call which was added to the Linux 5.2 version.Details
Looks like there already was an attempt to support
fsconfig
system call here, but I'm not sure why that hasn't been approved, I see 2 unresolved threads, but they're related to only comments, looks like patch is OK, is it needed only changes to comments? As I can see we can omit any links to documentation until it's merged, right? I can try to help if it needs some changes.Cc: @ianlancetaylor @AlexeyPerevalov
The text was updated successfully, but these errors were encountered: