Fixed ipns address resolution in fuse unix mount

License: MIT
Signed-off-by: Kunal Mahajan <mkunal@cs.columbia.edu>
This commit is contained in:
kvm2116 2018-08-01 11:30:08 -05:00 committed by Steven Allen
parent 3d1802fe64
commit bde04e3843

View File

@ -196,7 +196,8 @@ func (s *Root) Lookup(ctx context.Context, name string) (fs.Node, error) {
}
// other links go through ipns resolution and are symlinked into the ipfs mountpoint
resolved, err := s.Ipfs.Namesys.Resolve(s.Ipfs.Context(), name)
ipns_name := "/ipns/" + name
resolved, err := s.Ipfs.Namesys.Resolve(s.Ipfs.Context(), ipns_name)
if err != nil {
log.Warningf("ipns: namesys resolve error: %s", err)
return nil, fuse.ENOENT