@cryptotaxi247 / kubo / commits / f77dbe0a5

fuse/ipns: implement NodeReadlinker

Juan Batiz-Benet committed Mar 2, 2015 at 05:18 UTC f77dbe0a57052a88660d8b2bbf61be6092226347
1 file changed +4 -1
fuse/ipns/link_unix.go
+4 -1
@@ -4,6 +4,7 @@ import (
4 "os"
5
6 "github.com/jbenet/go-ipfs/Godeps/_workspace/src/bazil.org/fuse"
7 + "github.com/jbenet/go-ipfs/Godeps/_workspace/src/bazil.org/fuse/fs"
8 "github.com/jbenet/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context"
9 )
10
@@ -18,7 +19,9 @@ func (l *Link) Attr() fuse.Attr {
19 }
20 }
21
21 -func (l *Link) Readlink(req *fuse.ReadlinkRequest, ctx context.Context) (string, error) {
22 +func (l *Link) Readlink(ctx context.Context, req *fuse.ReadlinkRequest) (string, error) {
23 log.Debugf("ReadLink: %s", l.Target)
24 return l.Target, nil
25 }
26 +
27 +var _ fs.NodeReadlinker = (*Link)(nil)