Commit e00a5f2a authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

fuse/pathfs: expand calls for easier debug printing

parent aed5935e
...@@ -68,7 +68,6 @@ func (fs *loopbackFileSystem) GetAttr(name string, context *fuse.Context) (a *fu ...@@ -68,7 +68,6 @@ func (fs *loopbackFileSystem) GetAttr(name string, context *fuse.Context) (a *fu
} else { } else {
err = syscall.Lstat(fullPath, &st) err = syscall.Lstat(fullPath, &st)
} }
if err != nil { if err != nil {
return nil, fuse.ToStatus(err) return nil, fuse.ToStatus(err)
} }
...@@ -166,7 +165,9 @@ func (fs *loopbackFileSystem) Symlink(pointedTo string, linkName string, context ...@@ -166,7 +165,9 @@ func (fs *loopbackFileSystem) Symlink(pointedTo string, linkName string, context
} }
func (fs *loopbackFileSystem) Rename(oldPath string, newPath string, context *fuse.Context) (codee fuse.Status) { func (fs *loopbackFileSystem) Rename(oldPath string, newPath string, context *fuse.Context) (codee fuse.Status) {
err := os.Rename(fs.GetPath(oldPath), fs.GetPath(newPath)) oldPath = fs.GetPath(oldPath)
newPath = fs.GetPath(newPath)
err := os.Rename(oldPath, newPath)
return fuse.ToStatus(err) return fuse.ToStatus(err)
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment