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
Levin Zimmermann
go-fuse
Commits
f302529f
Commit
f302529f
authored
Apr 28, 2019
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fs: always set Mode correctly for Setattr output
parent
1d6f9351
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
fs/bridge.go
fs/bridge.go
+6
-5
No files found.
fs/bridge.go
View file @
f302529f
...
...
@@ -427,14 +427,15 @@ func (b *rawBridge) SetAttr(cancel <-chan struct{}, in *fuse.SetAttrIn, out *fus
f
=
nil
}
var
errno
=
syscall
.
ENOTSUP
if
fops
,
ok
:=
n
.
ops
.
(
NodeSetattrer
);
ok
{
return
errnoToStatus
(
fops
.
Setattr
(
ctx
,
f
,
in
,
out
))
}
if
fops
,
ok
:=
f
.
(
FileSetattrer
);
ok
{
return
errnoToStatus
(
fops
.
Setattr
(
ctx
,
in
,
out
))
errno
=
fops
.
Setattr
(
ctx
,
f
,
in
,
out
)
}
else
if
fops
,
ok
:=
f
.
(
FileSetattrer
);
ok
{
errno
=
fops
.
Setattr
(
ctx
,
in
,
out
)
}
return
fuse
.
ENOTSUP
out
.
Mode
=
n
.
stableAttr
.
Mode
|
(
out
.
Mode
&
07777
)
return
errnoToStatus
(
errno
)
}
func
(
b
*
rawBridge
)
Rename
(
cancel
<-
chan
struct
{},
input
*
fuse
.
RenameIn
,
oldName
string
,
newName
string
)
fuse
.
Status
{
...
...
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