-
Notifications
You must be signed in to change notification settings - Fork 19
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
gVisor extensions: yay or nay? #80
Comments
Short version: Leaning towards nay. But I can see a possibility of supporting both at once. Long version: I wonder if it would make sense to have both as separate interfaces. 1 interface could define the standard .L (Note that I haven't really used this library extensively so the following statement should hold less weight) The rationale for WalkGetattr makes sense, but I don't think I've ever called it. That said, I bet that pattern in my code would change if I had more reasons to use fields like the UID and GID parts of the attr. In regards to the create messages carrying UID I don't have any strong opinions on that at this time. As an aside to this, if the interface is going to have to change at some point anyway, I'd like to see Also in regards to protocol variants, even the .L extension itself is kind of annoying when compared to the original 9P2000 spec, but at least for Linux+POSIX interop we're kind of stuck with it. |
p9 code base currently has several gVisor protocol extensions (9P2000.L.Google.N, where N is some monotonically increasing number denoting support for ).
This support is only exercised between the client and server present in this code base. It would likely also have worked with gVisor before gVisor removed 9P support (I think it's all lisafs only now, on the public side).
Is it worth keeping some of the extensions?
T/Rwalkgetattr is mainly a bit annoying for server implementers at the moment, though
p9.DefaultWalkGetAttr
provides some relief. I think on the creation side, we currently do not handle UIDs or GIDs correctly for 9P2000.L at all, in any sense of the word. (Though removal of the extension may not necessarily help improve that situation.)The text was updated successfully, but these errors were encountered: