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
4d5341f6
Commit
4d5341f6
authored
Sep 09, 2015
by
Aaron Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added FileSystem.StatFS.
parent
c49a7e13
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
fuseops/ops.go
fuseops/ops.go
+1
-1
fuseutil/file_system.go
fuseutil/file_system.go
+1
-0
fuseutil/not_implemented_file_system.go
fuseutil/not_implemented_file_system.go
+7
-0
No files found.
fuseops/ops.go
View file @
4d5341f6
...
...
@@ -42,7 +42,7 @@ import (
// it, the file system will not successfully mount. If you don't model a sane
// amount of free space, the Finder will refuse to copy files into the file
// system.
type
Stat
fs
Op
struct
{
type
Stat
FS
Op
struct
{
// The size of the file system's blocks, and how many there are in total.
BlockSize
uint32
Blocks
uint64
...
...
fuseutil/file_system.go
View file @
4d5341f6
...
...
@@ -35,6 +35,7 @@ import (
// See NotImplementedFileSystem for a convenient way to embed default
// implementations for methods you don't care about.
type
FileSystem
interface
{
StatFS
(
context
.
Context
,
*
fuseops
.
StatFSOp
)
error
LookUpInode
(
context
.
Context
,
*
fuseops
.
LookUpInodeOp
)
error
GetInodeAttributes
(
context
.
Context
,
*
fuseops
.
GetInodeAttributesOp
)
error
SetInodeAttributes
(
context
.
Context
,
*
fuseops
.
SetInodeAttributesOp
)
error
...
...
fuseutil/not_implemented_file_system.go
View file @
4d5341f6
...
...
@@ -29,6 +29,13 @@ type NotImplementedFileSystem struct {
var
_
FileSystem
=
&
NotImplementedFileSystem
{}
func
(
fs
*
NotImplementedFileSystem
)
StatFS
(
ctx
context
.
Context
,
op
*
fuseops
.
StatFSOp
)
(
err
error
)
{
err
=
fuse
.
ENOSYS
return
}
func
(
fs
*
NotImplementedFileSystem
)
LookUpInode
(
ctx
context
.
Context
,
op
*
fuseops
.
LookUpInodeOp
)
(
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