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
7c991e45
Commit
7c991e45
authored
Apr 24, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run gofmt.
parent
29d35b93
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
83 additions
and
84 deletions
+83
-84
fuse/bufferpool.go
fuse/bufferpool.go
+1
-1
fuse/fuse.go
fuse/fuse.go
+8
-8
fuse/latencymap.go
fuse/latencymap.go
+5
-5
fuse/latencymap_test.go
fuse/latencymap_test.go
+1
-0
fuse/opcode.go
fuse/opcode.go
+45
-45
fuse/pathdebug.go
fuse/pathdebug.go
+5
-6
fuse/pathdebug_test.go
fuse/pathdebug_test.go
+2
-2
fuse/pathfilesystem.go
fuse/pathfilesystem.go
+11
-11
fuse/pathops.go
fuse/pathops.go
+5
-6
No files found.
fuse/bufferpool.go
View file @
7c991e45
fuse/fuse.go
View file @
7c991e45
fuse/latencymap.go
View file @
7c991e45
...
...
@@ -50,7 +50,7 @@ func (me *LatencyMap) add(name string, arg string, dtNs int64) {
me
.
stats
[
name
]
=
e
}
e
.
count
++
e
.
count
++
e
.
ns
+=
dtNs
if
arg
!=
""
{
m
,
ok
:=
me
.
secondaryStats
[
name
]
...
...
fuse/latencymap_test.go
View file @
7c991e45
package
fuse
import
(
"fmt"
"testing"
...
...
fuse/opcode.go
View file @
7c991e45
fuse/pathdebug.go
View file @
7c991e45
...
...
@@ -76,7 +76,7 @@ func (me *FileSystemDebug) GetAttr(path string) (*Attr, Status) {
if
path
==
DebugDir
{
return
&
Attr
{
Mode
:
S_IFDIR
|
0755
,
},
OK
},
OK
}
c
:=
me
.
getContent
(
path
)
if
c
!=
nil
{
...
...
@@ -126,14 +126,13 @@ func (me *FileSystemDebug) OpenDir(name string) (stream chan DirEntry, status St
stream
=
make
(
chan
DirEntry
,
len
(
me
.
callbacks
))
for
k
,
_
:=
range
me
.
callbacks
{
stream
<-
DirEntry
{
stream
<-
DirEntry
{
Name
:
k
,
Mode
:
S_IFREG
,
}
}
close
(
stream
)
return
stream
,
OK
}
return
me
.
Original
.
OpenDir
(
name
)
}
...
...
fuse/pathdebug_test.go
View file @
7c991e45
...
...
@@ -10,7 +10,7 @@ import (
func
TestPathDebug
(
t
*
testing
.
T
)
{
debugFs
:=
NewFileSystemDebug
()
debugFs
.
Original
=
&
DefaultFileSystem
{}
debugFs
.
Add
(
"test-entry"
,
func
()
[]
byte
{
return
[]
byte
(
"test-content"
);
})
debugFs
.
Add
(
"test-entry"
,
func
()
[]
byte
{
return
[]
byte
(
"test-content"
)
})
connector
:=
NewFileSystemConnector
(
debugFs
)
mountPoint
:=
MakeTempDir
()
...
...
fuse/pathfilesystem.go
View file @
7c991e45
fuse/pathops.go
View file @
7c991e45
...
...
@@ -393,4 +393,3 @@ func (me *FileSystemConnector) Read(input *ReadIn, bp *BufferPool) ([]byte, Stat
f
:=
me
.
getFile
(
input
.
Fh
)
return
f
.
Read
(
input
,
bp
)
}
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