small changes for plan 9 in Truncate and GetFileInfo; NFS server now works on Plan 9#142
small changes for plan 9 in Truncate and GetFileInfo; NFS server now works on Plan 9#142rminnich wants to merge 3 commits intowillscott:masterfrom
Conversation
|
I don't understand either of these changes
|
Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
|
ah, file_other.go was not there when I wrote file_plan9.go As for O_EXCL, I see the actual problem: Plan 9: O_EXCL only makes sense for create. The flags currently are: os.O_WRONLY|os.O_EXCL I don't think it even makes sense to use O_EXCL at all here, but on Plan 9 you get an error, and on linux you don't. I think just dropping O_EXCL completely may be the proper fix. But the combination of os.O_WRONLY|os.O_EXCL gets an error on Plan 9. |
Lots of programs (including git) do an Lstat to test file existence. This can produce a lot of not-very-useful spew. Just return nil for this error. This makes the package more usable. Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
Exclusive over NFS has always been a dicey situation, and failing breaks lots of things for which it is mainly best-effort (e.g. git); if it does not work, that is ok. Print a warning message, but continue with the operation. Signed-off-by: Ronald G Minnich <rminnich@gmail.com>
No description provided.