Commit 23121e91 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

MemUnionFs: Panic if file does not implement GetAttr().

parent ff77141e
......@@ -526,6 +526,9 @@ func (me *memNode) GetAttr(file fuse.File, context *fuse.Context) (fi *os.FileIn
fi, code := file.GetAttr()
if code.Ok() {
sz = fi.Size
} else {
msg := fmt.Sprintf("File.GetAttr(%s) = %v, %v", file.String(), fi, code)
panic(msg)
}
}
me.mutex.RLock()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment