hugelgupf / p9

Idiomatic Go 9P2000.L client and server, extracted from gVisor for general use
Apache License 2.0
90 stars 19 forks source link

Twalk returns Rlerror{Error: 16} while directory is still open #47

Closed mercora closed 3 years ago

mercora commented 3 years ago

Hello, i am trying to make use of this library but have an issue getting it to work. Whenever i try to do an "ls" on the filesystem mounted via native v9fs on linux i will get the list of files but not any information on them. I noticed it will call Walk for itself but not for anything inside. The reason is likely because the directory is still opened after Readdir is called and the handler code will refuse before even trying to call Walk in this case. This happens with localfs and staticfs too and therefore i am quite unsure what to do about this.

mercora commented 3 years ago

after commenting out the check if the file is already opened it apparently works as intended. But i guess this has some unintended consequences :(

mercora commented 3 years ago

this issue apparently exists "upstream" too, so i should probably report it there instead. Or even to linux kernel or util devs if it is just broken behavior.