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
0c3881b5
Commit
0c3881b5
authored
Nov 22, 2012
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run gofmt.
parent
8c884fd9
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
18 deletions
+18
-18
benchmark/stat_test.go
benchmark/stat_test.go
+1
-1
fuse/fsetattr_test.go
fuse/fsetattr_test.go
+5
-5
fuse/handle.go
fuse/handle.go
+1
-1
fuse/mountstate.go
fuse/mountstate.go
+2
-2
fuse/prefixfs.go
fuse/prefixfs.go
+1
-1
unionfs/autounion.go
unionfs/autounion.go
+7
-7
unionfs/unionfs_test.go
unionfs/unionfs_test.go
+1
-1
No files found.
benchmark/stat_test.go
View file @
0c3881b5
...
...
@@ -134,7 +134,7 @@ func TestingBOnePass(b *testing.B, threads int, files []string) (results []float
return
results
}
// Add this so we can estimate impact on latency numbers.
// Add this so we can estimate impact on latency numbers.
func
BenchmarkTimeNow
(
b
*
testing
.
B
)
{
for
i
:=
0
;
i
<
b
.
N
;
i
++
{
time
.
Now
()
...
...
fuse/fsetattr_test.go
View file @
0c3881b5
...
...
@@ -147,12 +147,12 @@ func setupFAttrTest(t *testing.T, fs FileSystem) (dir string, clean func(), sync
}
return
dir
,
func
()
{
if
state
.
Unmount
()
==
nil
{
os
.
RemoveAll
(
dir
)
if
state
.
Unmount
()
==
nil
{
os
.
RemoveAll
(
dir
)
}
},
func
()
{
state
.
ThreadSanitizerSync
()
}
},
func
()
{
state
.
ThreadSanitizerSync
()
}
}
func
TestDataReadLarge
(
t
*
testing
.
T
)
{
...
...
fuse/handle.go
View file @
0c3881b5
...
...
@@ -247,7 +247,7 @@ func (m *int64HandleMap) Has(handle uint64) bool {
func
(
m
*
int64HandleMap
)
Decode
(
handle
uint64
)
(
val
*
Handled
)
{
ptrBits
:=
uintptr
(
handle
&
(
1
<<
45
-
1
))
check
:=
uint32
(
handle
>>
45
)
val
=
(
*
Handled
)(
unsafe
.
Pointer
(
ptrBits
<<
3
))
val
=
(
*
Handled
)(
unsafe
.
Pointer
(
ptrBits
<<
3
))
if
val
.
check
!=
check
{
msg
:=
fmt
.
Sprintf
(
"handle check mismatch; handle has 0x%x, object has 0x%x: %v"
,
check
,
val
.
check
,
val
.
object
)
...
...
fuse/mountstate.go
View file @
0c3881b5
...
...
@@ -34,14 +34,14 @@ type MountState struct {
latencies
*
LatencyMap
opts
*
MountOptions
opts
*
MountOptions
reqMu
sync
.
Mutex
reqPool
[]
*
request
readPool
[][]
byte
reqReaders
int
outstandingReadBufs
int
kernelSettings
raw
.
InitIn
kernelSettings
raw
.
InitIn
canSplice
bool
loops
sync
.
WaitGroup
...
...
fuse/prefixfs.go
View file @
0c3881b5
...
...
@@ -5,7 +5,7 @@ import (
"path/filepath"
)
// PrefixFileSystem adds a path prefix to incoming calls.
// PrefixFileSystem adds a path prefix to incoming calls.
type
PrefixFileSystem
struct
{
FileSystem
Prefix
string
...
...
unionfs/autounion.go
View file @
0c3881b5
...
...
@@ -52,14 +52,14 @@ type AutoUnionFsOptions struct {
}
const
(
_READONLY
=
"READONLY"
_STATUS
=
"status"
_CONFIG
=
"config"
_DEBUG
=
"debug"
_READONLY
=
"READONLY"
_STATUS
=
"status"
_CONFIG
=
"config"
_DEBUG
=
"debug"
_DEBUG_SETTING
=
"debug_setting"
_ROOT
=
"root"
_VERSION
=
"gounionfs_version"
_SCAN_CONFIG
=
".scan_config"
_ROOT
=
"root"
_VERSION
=
"gounionfs_version"
_SCAN_CONFIG
=
".scan_config"
)
func
NewAutoUnionFs
(
directory
string
,
options
AutoUnionFsOptions
)
*
AutoUnionFs
{
...
...
unionfs/unionfs_test.go
View file @
0c3881b5
...
...
@@ -304,7 +304,7 @@ func TestUnionFsBasic(t *testing.T) {
names
=
dirNames
(
wd
+
"/rw"
)
checkMapEq
(
t
,
names
,
map
[
string
]
bool
{
testOpts
.
DeletionDirName
:
true
,
"rw"
:
true
,
"ro1"
:
true
,
"rw"
:
true
,
"ro1"
:
true
,
})
names
=
dirNames
(
wd
+
"/rw/"
+
testOpts
.
DeletionDirName
)
if
len
(
names
)
!=
0
{
...
...
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