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
8e70889f
Commit
8e70889f
authored
Jun 08, 2012
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gofmt.
parent
a4af95ae
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
8 deletions
+7
-8
benchmark/stat_test.go
benchmark/stat_test.go
+5
-5
fuse/fsops.go
fuse/fsops.go
+0
-1
fuse/latencymap.go
fuse/latencymap.go
+1
-1
fuse/mountstate.go
fuse/mountstate.go
+1
-1
No files found.
benchmark/stat_test.go
View file @
8e70889f
...
...
@@ -36,8 +36,8 @@ func setupFs(fs fuse.FileSystem) (string, func()) {
lc
,
lns
:=
state
.
Latencies
()
.
Get
(
"LOOKUP"
)
gc
,
gns
:=
state
.
Latencies
()
.
Get
(
"GETATTR"
)
fmt
.
Printf
(
"GETATTR %dus/call n=%d, LOOKUP %dus/call n=%d
\n
"
,
gns
/
int64
(
1000
*
lc
),
gc
,
lns
/
int64
(
1000
*
lc
),
lc
)
gns
/
int64
(
1000
*
lc
),
gc
,
lns
/
int64
(
1000
*
lc
),
lc
)
err
:=
state
.
Unmount
()
if
err
!=
nil
{
...
...
fuse/fsops.go
View file @
8e70889f
...
...
@@ -15,7 +15,6 @@ import (
var
_
=
log
.
Println
func
(
c
*
FileSystemConnector
)
String
()
string
{
if
c
.
rootNode
==
nil
||
c
.
rootNode
.
mount
==
nil
{
return
"go-fuse:unmounted"
...
...
fuse/latencymap.go
View file @
8e70889f
fuse/mountstate.go
View file @
8e70889f
...
...
@@ -94,7 +94,7 @@ func (ms *MountState) Mount(mountPoint string, opts *MountOptions) error {
}
name
=
strings
.
Replace
(
name
[
:
l
],
","
,
";"
,
-
1
)
}
optStrs
=
append
(
optStrs
,
"subtype="
+
name
)
optStrs
=
append
(
optStrs
,
"subtype="
+
name
)
file
,
mp
,
err
:=
mount
(
mountPoint
,
strings
.
Join
(
optStrs
,
","
))
if
err
!=
nil
{
...
...
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