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
62df4e52
Commit
62df4e52
authored
Jul 08, 2013
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fuse/pathfs: Fix StatfsOut location.
parent
c56ebf90
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
8 deletions
+7
-8
fuse/pathfs/api.go
fuse/pathfs/api.go
+1
-1
fuse/pathfs/default.go
fuse/pathfs/default.go
+1
-1
fuse/pathfs/locking.go
fuse/pathfs/locking.go
+1
-1
fuse/pathfs/loopback_linux.go
fuse/pathfs/loopback_linux.go
+2
-3
fuse/pathfs/pathfs.go
fuse/pathfs/pathfs.go
+1
-1
fuse/pathfs/prefixfs.go
fuse/pathfs/prefixfs.go
+1
-1
No files found.
fuse/pathfs/api.go
View file @
62df4e52
...
...
@@ -65,7 +65,7 @@ type FileSystem interface {
Symlink
(
value
string
,
linkName
string
,
context
*
fuse
.
Context
)
(
code
fuse
.
Status
)
Readlink
(
name
string
,
context
*
fuse
.
Context
)
(
string
,
fuse
.
Status
)
StatFs
(
name
string
)
*
nodefs
.
StatfsOut
StatFs
(
name
string
)
*
fuse
.
StatfsOut
}
type
PathNodeFsOptions
struct
{
...
...
fuse/pathfs/default.go
View file @
62df4e52
...
...
@@ -111,6 +111,6 @@ func (fs *defaultFileSystem) String() string {
return
"defaultFileSystem"
}
func
(
fs
*
defaultFileSystem
)
StatFs
(
name
string
)
*
nodefs
.
StatfsOut
{
func
(
fs
*
defaultFileSystem
)
StatFs
(
name
string
)
*
fuse
.
StatfsOut
{
return
nil
}
fuse/pathfs/locking.go
View file @
62df4e52
...
...
@@ -28,7 +28,7 @@ func (fs *lockingFileSystem) String() string {
return
fs
.
FS
.
String
()
}
func
(
fs
*
lockingFileSystem
)
StatFs
(
name
string
)
*
nodefs
.
StatfsOut
{
func
(
fs
*
lockingFileSystem
)
StatFs
(
name
string
)
*
fuse
.
StatfsOut
{
defer
fs
.
locked
()()
return
fs
.
FS
.
StatFs
(
name
)
}
...
...
fuse/pathfs/loopback_linux.go
View file @
62df4e52
...
...
@@ -5,14 +5,13 @@ import (
"syscall"
"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/fuse/nodefs"
)
func
(
fs
*
loopbackFileSystem
)
StatFs
(
name
string
)
*
nodefs
.
StatfsOut
{
func
(
fs
*
loopbackFileSystem
)
StatFs
(
name
string
)
*
fuse
.
StatfsOut
{
s
:=
syscall
.
Statfs_t
{}
err
:=
syscall
.
Statfs
(
fs
.
GetPath
(
name
),
&
s
)
if
err
==
nil
{
return
&
nodefs
.
StatfsOut
{
return
&
fuse
.
StatfsOut
{
Blocks
:
s
.
Blocks
,
Bsize
:
uint32
(
s
.
Bsize
),
Bfree
:
s
.
Bfree
,
...
...
fuse/pathfs/pathfs.go
View file @
62df4e52
...
...
@@ -377,7 +377,7 @@ func (n *pathInode) OnForget() {
////////////////////////////////////////////////////////////////
// FS operations
func
(
n
*
pathInode
)
StatFs
()
*
nodefs
.
StatfsOut
{
func
(
n
*
pathInode
)
StatFs
()
*
fuse
.
StatfsOut
{
return
n
.
fs
.
StatFs
(
n
.
GetPath
())
}
...
...
fuse/pathfs/prefixfs.go
View file @
62df4e52
...
...
@@ -119,6 +119,6 @@ func (fs *prefixFileSystem) String() string {
return
fmt
.
Sprintf
(
"prefixFileSystem(%s,%s)"
,
fs
.
FileSystem
.
String
(),
fs
.
Prefix
)
}
func
(
fs
*
prefixFileSystem
)
StatFs
(
name
string
)
*
nodefs
.
StatfsOut
{
func
(
fs
*
prefixFileSystem
)
StatFs
(
name
string
)
*
fuse
.
StatfsOut
{
return
fs
.
FileSystem
.
StatFs
(
fs
.
prefixed
(
name
))
}
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