We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
not sure if this is correct and i'm just confused?
case styx.Topen: f, err := os.OpenFile(p, msg.Flag , 0777) log.Println("Open", p, msg.Flag, err) msg.Ropen(f, err)
indicates Flag is always 0, so that when i do
./9pfuse localhost ~/mnt echo bla > ~/mnt/bar
bar is just an empty file. presumably because it would require O_RDWR to actually write anything
The text was updated successfully, but these errors were encountered:
just appening O_RDWR if its not a dir works, but i'm not sure if this is correct
case styx.Topen: s, err := os.Stat(p) if err != nil { continue } var f *os.File if s.IsDir() { f, err = os.OpenFile(p, msg.Flag , 0777) } else { f ,err = os.OpenFile(p, msg.Flag | os.O_RDWR , 0777) } log.Println("Open file", p, msg.Flag, err) msg.Ropen(f, err)
Sorry, something went wrong.
No branches or pull requests
not sure if this is correct and i'm just confused?
indicates Flag is always 0, so that when i do
bar is just an empty file. presumably because it would require O_RDWR to actually write anything
The text was updated successfully, but these errors were encountered: