From 0bc59a773449b5e77c60f188720fe97abc986961 Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Mon, 2 Dec 2019 10:13:17 +0300 Subject: [PATCH 1/3] Fix tutorial --- fs/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/api.go b/fs/api.go index 644b91872..88ec6828a 100644 --- a/fs/api.go +++ b/fs/api.go @@ -9,7 +9,7 @@ // To create a file system, you should first define types for the // nodes of the file system tree. // -// struct myNode { +// type myNode struct { // fs.Inode // } // From 1290ca99a94ee4dc075eb584e36fac07db46b0bc Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Mon, 2 Dec 2019 10:51:28 +0300 Subject: [PATCH 2/3] Clarify that v2 is the new API --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5b02608fd..1f70be704 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ and ## Comparison with other FUSE libraries -The FUSE library gained a new, cleaned-up API during a rewrite +The FUSE library gained a new, cleaned-up API v2 during a rewrite completed in 2019. Find extensive documentation [here](https://godoc.org/github.com/hanwen/go-fuse/). From 59e21f8a96c600ec35e6f575cca7d91d4861d9da Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Mon, 2 Dec 2019 11:18:38 +0300 Subject: [PATCH 3/3] Another missing prefix in example --- fs/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/api.go b/fs/api.go index 88ec6828a..0341d7bf9 100644 --- a/fs/api.go +++ b/fs/api.go @@ -19,7 +19,7 @@ // // Node types should implement some file system operations, eg. Lookup // var _ = (fs.NodeLookuper)((*myNode)(nil)) // -// func (n *myNode) Lookup(ctx context.Context, name string, ... ) (*Inode, syscall.Errno) { +// func (n *myNode) Lookup(ctx context.Context, name string, ... ) (*fs.Inode, syscall.Errno) { // ops := myNode{} // return n.NewInode(ctx, &ops, fs.StableAttr{Mode: syscall.S_IFDIR}), 0 // }