From 5f27f3f2616762d507db22bd7e8e739bc540d4b0 Mon Sep 17 00:00:00 2001 From: Ben Sidhom Date: Fri, 28 Apr 2017 16:59:21 -0700 Subject: [PATCH] Add comment to read op semantics for direct io --- fuseops/ops.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fuseops/ops.go b/fuseops/ops.go index cd99141..b361fa2 100644 --- a/fuseops/ops.go +++ b/fuseops/ops.go @@ -600,6 +600,9 @@ type ReadFileOp struct { // (http://goo.gl/SGxnaN) to read a page at a time. It appears to understand // where EOF is by checking the inode size (http://goo.gl/0BkqKD), returned // by a previous call to LookUpInode, GetInodeAttributes, etc. + // + // If direct io is enabled, semantics should match those of read (man 2 + // read). BytesRead int }