Skip to content

Commit 4f55fdb

Browse files
committed
p9kit: log and continue on stat errors for any readdir results
1 parent dcabedc commit 4f55fdb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/p9kit/server.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,8 @@ func (l *p9file) Readdir(offset uint64, count uint32) (dents p9.Dirents, derr er
577577
localEnt := p9file{path: path.Join(l.path, e.Name()), fsys: l.fsys, vattrs: l.vattrs}
578578
qid, _, err := localEnt.info()
579579
if err != nil {
580-
return p9Ents, err
580+
log.Println("p9kit: readdir info", e.Name(), err)
581+
continue
581582
}
582583

583584
p9Ents = append(p9Ents, p9.Dirent{

0 commit comments

Comments
 (0)