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
47638fa8
Commit
47638fa8
authored
Dec 14, 2015
by
Aaron Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added FileSystem support.
parent
f5dc8c35
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
fuseutil/file_system.go
fuseutil/file_system.go
+4
-0
fuseutil/not_implemented_file_system.go
fuseutil/not_implemented_file_system.go
+7
-0
No files found.
fuseutil/file_system.go
View file @
47638fa8
...
...
@@ -41,6 +41,7 @@ type FileSystem interface {
SetInodeAttributes
(
context
.
Context
,
*
fuseops
.
SetInodeAttributesOp
)
error
ForgetInode
(
context
.
Context
,
*
fuseops
.
ForgetInodeOp
)
error
MkDir
(
context
.
Context
,
*
fuseops
.
MkDirOp
)
error
MkNode
(
context
.
Context
,
*
fuseops
.
MkNodeOp
)
error
CreateFile
(
context
.
Context
,
*
fuseops
.
CreateFileOp
)
error
CreateSymlink
(
context
.
Context
,
*
fuseops
.
CreateSymlinkOp
)
error
Rename
(
context
.
Context
,
*
fuseops
.
RenameOp
)
error
...
...
@@ -138,6 +139,9 @@ func (s *fileSystemServer) handleOp(
case
*
fuseops
.
MkDirOp
:
err
=
s
.
fs
.
MkDir
(
ctx
,
typed
)
case
*
fuseops
.
MkNodeOp
:
err
=
s
.
fs
.
MkNode
(
ctx
,
typed
)
case
*
fuseops
.
CreateFileOp
:
err
=
s
.
fs
.
CreateFile
(
ctx
,
typed
)
...
...
fuseutil/not_implemented_file_system.go
View file @
47638fa8
...
...
@@ -71,6 +71,13 @@ func (fs *NotImplementedFileSystem) MkDir(
return
}
func
(
fs
*
NotImplementedFileSystem
)
MkNode
(
ctx
context
.
Context
,
op
*
fuseops
.
MkNodeOp
)
(
err
error
)
{
err
=
fuse
.
ENOSYS
return
}
func
(
fs
*
NotImplementedFileSystem
)
CreateFile
(
ctx
context
.
Context
,
op
*
fuseops
.
CreateFileOp
)
(
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