diff --git a/fuseops/ops.go b/fuseops/ops.go index 6e6b412..8f67841 100644 --- a/fuseops/ops.go +++ b/fuseops/ops.go @@ -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.