Added OpenFileOp.KeepPageCache.

geesefs-0-30-9
Aaron Jacobs 2015-07-29 05:51:20 +00:00
parent 04dad40a08
commit 7fae3a996b
1 changed files with 12 additions and 0 deletions

View File

@ -446,6 +446,18 @@ type OpenFileOp struct {
// file handle. The file system must ensure this ID remains valid until a
// later call to ReleaseFileHandle.
Handle HandleID
// By default, fuse invalidates the kernel's page cache for an inode when a
// new file handle is opened for that inode (cf. https://goo.gl/2rZ9uk). The
// intent appears to be to allow users to "see" content that has changed
// remotely on a networked file system by re-opening the file.
//
// For file systems where this is not a concern because all modifications for
// a particular inode go through the kernel, set this field to true to
// disable this behavior.
//
// More discussion: http://goo.gl/cafzWF
KeepPageCache bool
}
// Read data from a file previously opened with CreateFile or OpenFile.