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
64a8ae60
Commit
64a8ae60
authored
Mar 23, 2019
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nodefs: return ENOTSUP rather than ENOSYS
parent
b8a2eda4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
nodefs/bridge.go
nodefs/bridge.go
+10
-10
No files found.
nodefs/bridge.go
View file @
64a8ae60
...
...
@@ -401,7 +401,7 @@ func (b *rawBridge) Rename(cancel <-chan struct{}, input *fuse.RenameIn, oldName
return
errnoToStatus
(
errno
)
}
}
return
fuse
.
ENO
SYS
return
fuse
.
ENO
TSUP
}
func
(
b
*
rawBridge
)
Link
(
cancel
<-
chan
struct
{},
input
*
fuse
.
LinkIn
,
name
string
,
out
*
fuse
.
EntryOut
)
fuse
.
Status
{
...
...
@@ -418,7 +418,7 @@ func (b *rawBridge) Link(cancel <-chan struct{}, input *fuse.LinkIn, name string
b
.
setEntryOutTimeout
(
out
)
return
fuse
.
OK
}
return
fuse
.
ENO
SYS
return
fuse
.
ENO
TSUP
}
func
(
b
*
rawBridge
)
Symlink
(
cancel
<-
chan
struct
{},
header
*
fuse
.
InHeader
,
target
string
,
name
string
,
out
*
fuse
.
EntryOut
)
fuse
.
Status
{
...
...
@@ -434,7 +434,7 @@ func (b *rawBridge) Symlink(cancel <-chan struct{}, header *fuse.InHeader, targe
b
.
setEntryOutTimeout
(
out
)
return
fuse
.
OK
}
return
fuse
.
ENO
SYS
return
fuse
.
ENO
TSUP
}
func
(
b
*
rawBridge
)
Readlink
(
cancel
<-
chan
struct
{},
header
*
fuse
.
InHeader
)
(
out
[]
byte
,
status
fuse
.
Status
)
{
...
...
@@ -462,7 +462,7 @@ func (b *rawBridge) GetXAttr(cancel <-chan struct{}, header *fuse.InHeader, attr
return
nb
,
errnoToStatus
(
errno
)
}
return
0
,
fuse
.
ENO
SYS
return
0
,
fuse
.
ENO
TSUP
}
func
(
b
*
rawBridge
)
ListXAttr
(
cancel
<-
chan
struct
{},
header
*
fuse
.
InHeader
,
dest
[]
byte
)
(
sz
uint32
,
status
fuse
.
Status
)
{
...
...
@@ -471,7 +471,7 @@ func (b *rawBridge) ListXAttr(cancel <-chan struct{}, header *fuse.InHeader, des
sz
,
errno
:=
xops
.
ListXAttr
(
&
fuse
.
Context
{
Caller
:
header
.
Caller
,
Cancel
:
cancel
},
dest
)
return
sz
,
errnoToStatus
(
errno
)
}
return
0
,
fuse
.
ENO
SYS
return
0
,
fuse
.
ENO
TSUP
}
func
(
b
*
rawBridge
)
SetXAttr
(
cancel
<-
chan
struct
{},
input
*
fuse
.
SetXAttrIn
,
attr
string
,
data
[]
byte
)
fuse
.
Status
{
...
...
@@ -479,7 +479,7 @@ func (b *rawBridge) SetXAttr(cancel <-chan struct{}, input *fuse.SetXAttrIn, att
if
xops
,
ok
:=
n
.
ops
.
(
XAttrOperations
);
ok
{
return
errnoToStatus
(
xops
.
SetXAttr
(
&
fuse
.
Context
{
Caller
:
input
.
Caller
,
Cancel
:
cancel
},
attr
,
data
,
input
.
Flags
))
}
return
fuse
.
ENO
SYS
return
fuse
.
ENO
TSUP
}
func
(
b
*
rawBridge
)
RemoveXAttr
(
cancel
<-
chan
struct
{},
header
*
fuse
.
InHeader
,
attr
string
)
fuse
.
Status
{
...
...
@@ -487,7 +487,7 @@ func (b *rawBridge) RemoveXAttr(cancel <-chan struct{}, header *fuse.InHeader, a
if
xops
,
ok
:=
n
.
ops
.
(
XAttrOperations
);
ok
{
return
errnoToStatus
(
xops
.
RemoveXAttr
(
&
fuse
.
Context
{
Caller
:
header
.
Caller
,
Cancel
:
cancel
},
attr
))
}
return
fuse
.
ENO
SYS
return
fuse
.
ENO
TSUP
}
func
(
b
*
rawBridge
)
Open
(
cancel
<-
chan
struct
{},
input
*
fuse
.
OpenIn
,
out
*
fuse
.
OpenOut
)
fuse
.
Status
{
...
...
@@ -538,7 +538,7 @@ func (b *rawBridge) GetLk(cancel <-chan struct{}, input *fuse.LkIn, out *fuse.Lk
if
lops
,
ok
:=
n
.
ops
.
(
LockOperations
);
ok
{
return
errnoToStatus
(
lops
.
GetLk
(
&
fuse
.
Context
{
Caller
:
input
.
Caller
,
Cancel
:
cancel
},
f
.
file
,
input
.
Owner
,
&
input
.
Lk
,
input
.
LkFlags
,
&
out
.
Lk
))
}
return
fuse
.
ENO
SYS
return
fuse
.
ENO
TSUP
}
func
(
b
*
rawBridge
)
SetLk
(
cancel
<-
chan
struct
{},
input
*
fuse
.
LkIn
)
fuse
.
Status
{
...
...
@@ -546,14 +546,14 @@ func (b *rawBridge) SetLk(cancel <-chan struct{}, input *fuse.LkIn) fuse.Status
if
lops
,
ok
:=
n
.
ops
.
(
LockOperations
);
ok
{
return
errnoToStatus
(
lops
.
SetLk
(
&
fuse
.
Context
{
Caller
:
input
.
Caller
,
Cancel
:
cancel
},
f
.
file
,
input
.
Owner
,
&
input
.
Lk
,
input
.
LkFlags
))
}
return
fuse
.
ENO
SYS
return
fuse
.
ENO
TSUP
}
func
(
b
*
rawBridge
)
SetLkw
(
cancel
<-
chan
struct
{},
input
*
fuse
.
LkIn
)
fuse
.
Status
{
n
,
f
:=
b
.
inode
(
input
.
NodeId
,
input
.
Fh
)
if
lops
,
ok
:=
n
.
ops
.
(
LockOperations
);
ok
{
return
errnoToStatus
(
lops
.
SetLkw
(
&
fuse
.
Context
{
Caller
:
input
.
Caller
,
Cancel
:
cancel
},
f
.
file
,
input
.
Owner
,
&
input
.
Lk
,
input
.
LkFlags
))
}
return
fuse
.
ENO
SYS
return
fuse
.
ENO
TSUP
}
func
(
b
*
rawBridge
)
Release
(
input
*
fuse
.
ReleaseIn
)
{
...
...
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