From 12dc13280537bdee3c81542750109e913ddbf5eb Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Wed, 18 Mar 2015 12:52:05 +1100 Subject: [PATCH] Added a callout to osxfuse/osxfuse#199 in comments for Open{File,Dir}. --- file_system.go | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/file_system.go b/file_system.go index 56fc07b..6e473ef 100644 --- a/file_system.go +++ b/file_system.go @@ -131,9 +131,12 @@ type FileSystem interface { // Directory handles /////////////////////////////////// - // Open a directory inode. The kernel calls this method when setting up a - // struct file for a particular inode with type directory, usually in - // response to an open(2) call from a user-space process. + // Open a directory inode. + // + // On Linux the kernel calls this method when setting up a struct file for a + // particular inode with type directory, usually in response to an open(2) + // call from a user-space process. On OS X it may not be called for every + // open(2) (cf. https://github.com/osxfuse/osxfuse/issues/199). OpenDir( ctx context.Context, req *OpenDirRequest) (*OpenDirResponse, error) @@ -157,9 +160,12 @@ type FileSystem interface { // File handles /////////////////////////////////// - // Open a file inode. The kernel calls this method when setting up a struct - // file for a particular inode with type file, usually in response to an - // open(2) call from a user-space process. + // Open a file inode. + // + // On Linux the kernel calls this method when setting up a struct file for a + // particular inode with type file, usually in response to an open(2) call + // from a user-space process. On OS X it may not be called for every open(2) + // (cf.https://github.com/osxfuse/osxfuse/issues/199). OpenFile( ctx context.Context, req *OpenFileRequest) (*OpenFileResponse, error)