Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jacobsa-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
jacobsa-fuse
Commits
27a92177
Commit
27a92177
authored
Sep 09, 2015
by
Aaron Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed file writing.
parent
64cbdfea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
samples/statfs/statfs.go
samples/statfs/statfs.go
+22
-0
No files found.
samples/statfs/statfs.go
View file @
27a92177
...
@@ -114,6 +114,21 @@ func (fs *statFS) StatFS(
...
@@ -114,6 +114,21 @@ func (fs *statFS) StatFS(
return
return
}
}
func
(
fs
*
statFS
)
LookUpInode
(
ctx
context
.
Context
,
op
*
fuseops
.
LookUpInodeOp
)
(
err
error
)
{
// Only the root has children.
if
op
.
Parent
!=
fuseops
.
RootInodeID
{
err
=
fuse
.
ENOENT
return
}
op
.
Entry
.
Child
=
childInodeID
op
.
Entry
.
Attributes
=
fileAttrs
()
return
}
func
(
fs
*
statFS
)
GetInodeAttributes
(
func
(
fs
*
statFS
)
GetInodeAttributes
(
ctx
context
.
Context
,
ctx
context
.
Context
,
op
*
fuseops
.
GetInodeAttributesOp
)
(
err
error
)
{
op
*
fuseops
.
GetInodeAttributesOp
)
(
err
error
)
{
...
@@ -131,6 +146,13 @@ func (fs *statFS) GetInodeAttributes(
...
@@ -131,6 +146,13 @@ func (fs *statFS) GetInodeAttributes(
return
return
}
}
func
(
fs
*
statFS
)
SetInodeAttributes
(
ctx
context
.
Context
,
op
*
fuseops
.
SetInodeAttributesOp
)
(
err
error
)
{
// Ignore calls to truncate existing files when opening.
return
}
func
(
fs
*
statFS
)
OpenFile
(
func
(
fs
*
statFS
)
OpenFile
(
ctx
context
.
Context
,
ctx
context
.
Context
,
op
*
fuseops
.
OpenFileOp
)
(
err
error
)
{
op
*
fuseops
.
OpenFileOp
)
(
err
error
)
{
...
...
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