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
d227afe7
Commit
d227afe7
authored
Feb 24, 2019
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nodefs: add Fsync
parent
42b9d807
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
nodefs/default.go
nodefs/default.go
+7
-1
No files found.
nodefs/default.go
View file @
d227afe7
...
@@ -168,6 +168,8 @@ func (n *DefaultOperations) Create(ctx context.Context, name string, flags uint3
...
@@ -168,6 +168,8 @@ func (n *DefaultOperations) Create(ctx context.Context, name string, flags uint3
type
DefaultFile
struct
{
type
DefaultFile
struct
{
}
}
var
_
=
File
((
*
DefaultFile
)(
nil
))
func
(
f
*
DefaultFile
)
Read
(
ctx
context
.
Context
,
dest
[]
byte
,
off
int64
)
(
fuse
.
ReadResult
,
fuse
.
Status
)
{
func
(
f
*
DefaultFile
)
Read
(
ctx
context
.
Context
,
dest
[]
byte
,
off
int64
)
(
fuse
.
ReadResult
,
fuse
.
Status
)
{
return
nil
,
fuse
.
ENOSYS
return
nil
,
fuse
.
ENOSYS
}
}
...
@@ -196,7 +198,7 @@ func (f *DefaultFile) Release(ctx context.Context) {
...
@@ -196,7 +198,7 @@ func (f *DefaultFile) Release(ctx context.Context) {
}
}
func
(
f
*
DefaultFile
)
GetAttr
(
ctx
context
.
Context
,
out
*
fuse
.
Attr
)
fuse
.
Status
{
func
(
f
*
DefaultFile
)
GetAttr
(
ctx
context
.
Context
,
out
*
fuse
.
Attr
Out
)
fuse
.
Status
{
return
fuse
.
ENOSYS
return
fuse
.
ENOSYS
}
}
...
@@ -220,3 +222,7 @@ func (f *DefaultFile) Utimens(ctx context.Context, atime *time.Time, mtime *time
...
@@ -220,3 +222,7 @@ func (f *DefaultFile) Utimens(ctx context.Context, atime *time.Time, mtime *time
func
(
f
*
DefaultFile
)
Allocate
(
ctx
context
.
Context
,
off
uint64
,
size
uint64
,
mode
uint32
)
(
code
fuse
.
Status
)
{
func
(
f
*
DefaultFile
)
Allocate
(
ctx
context
.
Context
,
off
uint64
,
size
uint64
,
mode
uint32
)
(
code
fuse
.
Status
)
{
return
fuse
.
ENOSYS
return
fuse
.
ENOSYS
}
}
func
(
f
*
DefaultFile
)
Fsync
(
ctx
context
.
Context
,
flags
uint32
)
(
code
fuse
.
Status
)
{
return
fuse
.
ENOSYS
}
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