Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jacobsa-fuse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
jacobsa-fuse
Commits
025868ec
Commit
025868ec
authored
Apr 28, 2017
by
Ben Sidhom
Committed by
Aaron Jacobs
May 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add direct io option for file operations
parent
bf339162
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
conversions.go
conversions.go
+4
-0
fuseops/ops.go
fuseops/ops.go
+9
-0
No files found.
conversions.go
View file @
025868ec
...
...
@@ -561,6 +561,10 @@ func (c *Connection) kernelResponseForOp(
out
.
OpenFlags
|=
uint32
(
fusekernel
.
OpenKeepCache
)
}
if
o
.
UseDirectIO
{
out
.
OpenFlags
|=
uint32
(
fusekernel
.
OpenDirectIO
)
}
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
...
...
fuseops/ops.go
View file @
025868ec
...
...
@@ -564,6 +564,15 @@ type OpenFileOp struct {
// is set to true, regardless of its value, at least for files opened in the
// same mode. (Cf. https://github.com/osxfuse/osxfuse/issues/223)
KeepPageCache
bool
// Whether to use direct IO for this file handle. By default, the kernel
// suppresses what it sees as redundant operations (including reads beyond
// the precomputed EOF).
//
// Enabling direct IO ensures that all client operations reach the fuse
// layer. This allows for filesystems whose file sizes are not known in
// advance, for example, because contents are generated on the fly.
UseDirectIO
bool
}
// Read data from a file previously opened with CreateFile or OpenFile.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment