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
48571ab6
Commit
48571ab6
authored
Jun 05, 2015
by
Aaron Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated the FileSystem interface.
parent
3d04b93c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
21 deletions
+22
-21
fuseutil/file_system.go
fuseutil/file_system.go
+22
-21
No files found.
fuseutil/file_system.go
View file @
48571ab6
...
@@ -33,31 +33,32 @@ var fRandomDelays = flag.Bool(
...
@@ -33,31 +33,32 @@ var fRandomDelays = flag.Bool(
// loop" that switches on op types, instead receiving typed method calls
// loop" that switches on op types, instead receiving typed method calls
// directly.
// directly.
//
//
// Each method is responsible for calling Respond on the supplied op.
// The FileSystem implementation should not call Op.Respond, instead returning
// the error with which the caller should respond.
//
//
// See NotImplementedFileSystem for a convenient way to embed default
// See NotImplementedFileSystem for a convenient way to embed default
// implementations for methods you don't care about.
// implementations for methods you don't care about.
type
FileSystem
interface
{
type
FileSystem
interface
{
Init
(
*
fuseops
.
InitOp
)
Init
(
*
fuseops
.
InitOp
)
error
LookUpInode
(
*
fuseops
.
LookUpInodeOp
)
LookUpInode
(
*
fuseops
.
LookUpInodeOp
)
error
GetInodeAttributes
(
*
fuseops
.
GetInodeAttributesOp
)
GetInodeAttributes
(
*
fuseops
.
GetInodeAttributesOp
)
error
SetInodeAttributes
(
*
fuseops
.
SetInodeAttributesOp
)
SetInodeAttributes
(
*
fuseops
.
SetInodeAttributesOp
)
error
ForgetInode
(
*
fuseops
.
ForgetInodeOp
)
ForgetInode
(
*
fuseops
.
ForgetInodeOp
)
error
MkDir
(
*
fuseops
.
MkDirOp
)
MkDir
(
*
fuseops
.
MkDirOp
)
error
CreateFile
(
*
fuseops
.
CreateFileOp
)
CreateFile
(
*
fuseops
.
CreateFileOp
)
error
CreateSymlink
(
*
fuseops
.
CreateSymlinkOp
)
CreateSymlink
(
*
fuseops
.
CreateSymlinkOp
)
error
RmDir
(
*
fuseops
.
RmDirOp
)
RmDir
(
*
fuseops
.
RmDirOp
)
error
Unlink
(
*
fuseops
.
UnlinkOp
)
Unlink
(
*
fuseops
.
UnlinkOp
)
error
OpenDir
(
*
fuseops
.
OpenDirOp
)
OpenDir
(
*
fuseops
.
OpenDirOp
)
error
ReadDir
(
*
fuseops
.
ReadDirOp
)
ReadDir
(
*
fuseops
.
ReadDirOp
)
error
ReleaseDirHandle
(
*
fuseops
.
ReleaseDirHandleOp
)
ReleaseDirHandle
(
*
fuseops
.
ReleaseDirHandleOp
)
error
OpenFile
(
*
fuseops
.
OpenFileOp
)
OpenFile
(
*
fuseops
.
OpenFileOp
)
error
ReadFile
(
*
fuseops
.
ReadFileOp
)
ReadFile
(
*
fuseops
.
ReadFileOp
)
error
WriteFile
(
*
fuseops
.
WriteFileOp
)
WriteFile
(
*
fuseops
.
WriteFileOp
)
error
SyncFile
(
*
fuseops
.
SyncFileOp
)
SyncFile
(
*
fuseops
.
SyncFileOp
)
error
FlushFile
(
*
fuseops
.
FlushFileOp
)
FlushFile
(
*
fuseops
.
FlushFileOp
)
error
ReleaseFileHandle
(
*
fuseops
.
ReleaseFileHandleOp
)
ReleaseFileHandle
(
*
fuseops
.
ReleaseFileHandleOp
)
error
ReadSymlink
(
*
fuseops
.
ReadSymlinkOp
)
ReadSymlink
(
*
fuseops
.
ReadSymlinkOp
)
error
}
}
// Create a fuse.Server that handles ops by calling the associated FileSystem
// Create a fuse.Server that handles ops by calling the associated FileSystem
...
...
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