From 1d1fb8328197ed76da33bc3dc588d0cdf0a3ece0 Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Fri, 27 Feb 2015 15:50:01 +1100 Subject: [PATCH] Implemented OpenFile. --- samples/hello_fs.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/samples/hello_fs.go b/samples/hello_fs.go index a8e3a94..304baff 100644 --- a/samples/hello_fs.go +++ b/samples/hello_fs.go @@ -235,3 +235,11 @@ func (fs *HelloFS) ReadDir( return } + +func (fs *HelloFS) OpenFile( + ctx context.Context, + req *fuse.OpenFileRequest) (resp *fuse.OpenFileResponse, err error) { + // Allow opening any file. + resp = &fuse.OpenFileResponse{} + return +}