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
Kirill Smelkov
go-fuse
Commits
2003d2b2
Commit
2003d2b2
authored
Sep 08, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run gofmt.
parent
aaa7e243
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
44 additions
and
53 deletions
+44
-53
benchmark/stat_test.go
benchmark/stat_test.go
+6
-8
fuse/api.go
fuse/api.go
+3
-3
fuse/cache_test.go
fuse/cache_test.go
+2
-2
fuse/fsconnector.go
fuse/fsconnector.go
+1
-2
fuse/fsmount.go
fuse/fsmount.go
+3
-6
fuse/fsops.go
fuse/fsops.go
+3
-3
fuse/handle.go
fuse/handle.go
+0
-1
fuse/inode.go
fuse/inode.go
+2
-1
fuse/loopback_test.go
fuse/loopback_test.go
+4
-4
fuse/pathfs.go
fuse/pathfs.go
+16
-16
unionfs/autounion.go
unionfs/autounion.go
+1
-1
unionfs/unionfs.go
unionfs/unionfs.go
+1
-1
unionfs/unionfs_test.go
unionfs/unionfs_test.go
+2
-5
No files found.
benchmark/stat_test.go
View file @
2003d2b2
...
...
@@ -207,7 +207,6 @@ func TestingBOnePass(b *testing.B, threads int, sleepTime float64, files []strin
return
results
}
func
BenchmarkCFuseThreadedStat
(
b
*
testing
.
B
)
{
log
.
Println
(
"benchmarking CFuse"
)
...
...
@@ -239,7 +238,7 @@ func BenchmarkCFuseThreadedStat(b *testing.B) {
log
.
Println
(
"Written:"
,
f
.
Name
())
mountPoint
:=
fuse
.
MakeTempDir
()
wd
,
_
:=
os
.
Getwd
()
cmd
:=
exec
.
Command
(
wd
+
"/cstatfs"
,
mountPoint
)
cmd
:=
exec
.
Command
(
wd
+
"/cstatfs"
,
mountPoint
)
cmd
.
Env
=
append
(
os
.
Environ
(),
fmt
.
Sprintf
(
"STATFS_INPUT=%s"
,
f
.
Name
()))
cmd
.
Start
()
...
...
@@ -261,4 +260,3 @@ func BenchmarkCFuseThreadedStat(b *testing.B) {
results
:=
TestingBOnePass
(
b
,
threads
,
ttl
*
1.2
,
lines
)
AnalyzeBenchmarkRuns
(
results
)
}
fuse/api.go
View file @
2003d2b2
fuse/cache_test.go
View file @
2003d2b2
fuse/fsconnector.go
View file @
2003d2b2
...
...
@@ -337,4 +337,3 @@ func (me *FileSystemConnector) FileNotify(node *Inode, off int64, length int64)
func
(
me
*
FileSystemConnector
)
EntryNotify
(
dir
*
Inode
,
name
string
)
Status
{
return
me
.
fsInit
.
EntryNotify
(
dir
.
nodeId
,
name
)
}
fuse/fsmount.go
View file @
2003d2b2
...
...
@@ -50,8 +50,6 @@ func (me *fileSystemMount) mountName() string {
return
""
}
func
(
me
*
fileSystemMount
)
setOwner
(
attr
*
Attr
)
{
if
me
.
options
.
Owner
!=
nil
{
attr
.
Owner
=
*
me
.
options
.
Owner
...
...
@@ -139,4 +137,3 @@ func (me *fileSystemMount) negativeEntry() *EntryOut {
SplitNs
(
me
.
options
.
NegativeTimeout
,
&
out
.
EntryValid
,
&
out
.
EntryValidNsec
)
return
out
}
fuse/fsops.go
View file @
2003d2b2
fuse/handle.go
View file @
2003d2b2
...
...
@@ -51,7 +51,6 @@ func (me *int32HandleMap) Has(h uint64) bool {
return
me
.
handles
[
uint32
(
h
)]
!=
nil
}
func
(
me
*
int32HandleMap
)
Count
()
int
{
me
.
mutex
.
Lock
()
defer
me
.
mutex
.
Unlock
()
...
...
fuse/inode.go
View file @
2003d2b2
...
...
@@ -5,6 +5,7 @@ import (
"log"
"sync"
)
var
_
=
log
.
Println
// The inode reflects the kernel's idea of the inode.
...
...
fuse/loopback_test.go
View file @
2003d2b2
...
...
@@ -278,9 +278,9 @@ func TestLinkExisting(t *testing.T) {
c
:=
"hello"
err
:=
ioutil
.
WriteFile
(
me
.
orig
+
"/file1"
,
[]
byte
(
c
),
0644
)
err
:=
ioutil
.
WriteFile
(
me
.
orig
+
"/file1"
,
[]
byte
(
c
),
0644
)
CheckSuccess
(
err
)
err
=
os
.
Link
(
me
.
orig
+
"/file1"
,
me
.
orig
+
"/file2"
)
err
=
os
.
Link
(
me
.
orig
+
"/file1"
,
me
.
orig
+
"/file2"
)
CheckSuccess
(
err
)
f1
,
err
:=
os
.
Lstat
(
me
.
mnt
+
"/file1"
)
...
...
fuse/pathfs.go
View file @
2003d2b2
...
...
@@ -47,7 +47,7 @@ func (me *PathNodeFs) StatFs() *StatfsOut {
return
me
.
fs
.
StatFs
()
}
func
(
me
*
PathNodeFs
)
Node
(
name
string
)
(
*
Inode
)
{
func
(
me
*
PathNodeFs
)
Node
(
name
string
)
*
Inode
{
n
,
rest
:=
me
.
LastNode
(
name
)
if
len
(
rest
)
>
0
{
return
nil
...
...
unionfs/autounion.go
View file @
2003d2b2
unionfs/unionfs.go
View file @
2003d2b2
unionfs/unionfs_test.go
View file @
2003d2b2
...
...
@@ -588,7 +588,7 @@ func TestLink(t *testing.T) {
err
:=
ioutil
.
WriteFile
(
fn
,
[]
byte
(
content
),
0666
)
CheckSuccess
(
err
)
err
=
os
.
Link
(
wd
+
"/mount/file"
,
wd
+
"/mount/linked"
)
err
=
os
.
Link
(
wd
+
"/mount/file"
,
wd
+
"/mount/linked"
)
CheckSuccess
(
err
)
fi2
,
err
:=
os
.
Lstat
(
wd
+
"/mount/linked"
)
...
...
@@ -945,7 +945,6 @@ func TestDoubleOpen(t *testing.T) {
}
}
func
TestFdLeak
(
t
*
testing
.
T
)
{
beforeEntries
,
err
:=
ioutil
.
ReadDir
(
"/proc/self/fd"
)
CheckSuccess
(
err
)
...
...
@@ -957,7 +956,7 @@ func TestFdLeak(t *testing.T) {
contents
,
err
:=
ioutil
.
ReadFile
(
wd
+
"/mount/file"
)
CheckSuccess
(
err
)
err
=
ioutil
.
WriteFile
(
wd
+
"/mount/file"
,
contents
,
0644
)
err
=
ioutil
.
WriteFile
(
wd
+
"/mount/file"
,
contents
,
0644
)
CheckSuccess
(
err
)
clean
()
...
...
@@ -969,5 +968,3 @@ func TestFdLeak(t *testing.T) {
t
.
Errorf
(
"/proc/self/fd changed size: after %v before %v"
,
len
(
beforeEntries
),
len
(
afterEntries
))
}
}
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