Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go-fuse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go-fuse
Commits
e00a5f2a
Commit
e00a5f2a
authored
Jan 30, 2019
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fuse/pathfs: expand calls for easier debug printing
parent
aed5935e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
fuse/pathfs/loopback.go
fuse/pathfs/loopback.go
+3
-2
No files found.
fuse/pathfs/loopback.go
View file @
e00a5f2a
...
@@ -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
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment