-
Notifications
You must be signed in to change notification settings - Fork 18
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
Getting rwalk did not find file
for any Twalk call
#31
Comments
The same error manifests itself in
It seems like this is an issue that has been introduced in #30 - reverting part of those changes restores the expected behaviour. With those PR changes reverted:
|
This is a bit tricky. I feel that the change in #30 is more "correct", in the sense that the At the same time, that is not their fault, as the I am open to suggestions here. Should we add a new method to be used when "loading" an existing filesystem? Restore (and document) the implicit behavior? What does plan 9 do? |
It's tricky indeed - with styx being a more high-level package, I thought it was an intentional design that Rwalk automatically creates Qids when needed, which results in client code pretty much never needing to know anything about Qids or to manage them at all. I think this is a pretty cool feature. I'm not an expert, but while it's true that Rwalk isn't supposed to create Qids, it seems like styx's T-messages and R-methods aren't really 9p messages, they're sort of a higher level, slightly more abstract concept, and they do a bit extra. There could be a separate public API introduced for defining Qids for preexisting files, but I'm not sure what benefit that would give users of this package. You'd be able to give files any Qid you want, but would you actually want to set other Qids compared to what Rwalk is automatically setting? I know I wouldn't, but then again I am not the most knowledgeable on how 9p works. |
Using the provided example noop FS:
Running the following client command:
Perhaps my understanding of how this package works is incorrect, but I expected any sort of stat call to successfully return an empty dir.
I am guessing styx wants (either intentionally, or by accident) the file to be created first using Tcreate? But what about the scenario where you are starting up a server which already has some files pre-populated inside it?
The text was updated successfully, but these errors were encountered: