Added support for KeepPageCache.

geesefs-0-30-9
Aaron Jacobs 2015-07-29 05:53:46 +00:00
parent c3c029c5c1
commit a88ad8dbf2
1 changed files with 4 additions and 0 deletions

View File

@ -512,6 +512,10 @@ func (c *Connection) kernelResponseForOp(
out := (*fusekernel.OpenOut)(m.Grow(unsafe.Sizeof(fusekernel.OpenOut{})))
out.Fh = uint64(o.Handle)
if o.KeepPageCache {
out.OpenFlags |= uint32(fusekernel.OpenKeepCache)
}
case *fuseops.ReadFileOp:
// convertInMessage already set up the destination buffer to be at the end
// of the out message. We need only shrink to the right size based on how