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
60423690
Commit
60423690
authored
Apr 04, 2015
by
Daniel Martí
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix all go vet issues
parent
4ab0fef0
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
17 additions
and
10 deletions
+17
-10
benchmark/benchmark.go
benchmark/benchmark.go
+1
-1
fuse/misc.go
fuse/misc.go
+5
-1
fuse/nodefs/fsmount.go
fuse/nodefs/fsmount.go
+0
-1
fuse/nodefs/fsops.go
fuse/nodefs/fsops.go
+2
-2
fuse/opcode.go
fuse/opcode.go
+5
-1
fuse/pathfs/owner_test.go
fuse/pathfs/owner_test.go
+1
-1
unionfs/unionfs_test.go
unionfs/unionfs_test.go
+2
-2
zipfs/multizip_test.go
zipfs/multizip_test.go
+1
-1
No files found.
benchmark/benchmark.go
View file @
60423690
...
...
@@ -114,7 +114,7 @@ func RunBulkStat(runs int, threads int, sleepTime time.Duration, files []string)
results
=
append
(
results
,
result
)
if
j
<
runs
-
1
{
fmt
.
Printf
(
"Sleeping %
.2f
seconds
\n
"
,
sleepTime
)
fmt
.
Printf
(
"Sleeping %
d
seconds
\n
"
,
sleepTime
)
time
.
Sleep
(
sleepTime
)
}
}
...
...
fuse/misc.go
View file @
60423690
...
...
@@ -62,7 +62,11 @@ func ToStatus(err error) Status {
func
toSlice
(
dest
*
[]
byte
,
ptr
unsafe
.
Pointer
,
byteCount
uintptr
)
{
h
:=
(
*
reflect
.
SliceHeader
)(
unsafe
.
Pointer
(
dest
))
*
h
=
reflect
.
SliceHeader
{
uintptr
(
ptr
),
int
(
byteCount
),
int
(
byteCount
)}
*
h
=
reflect
.
SliceHeader
{
Data
:
uintptr
(
ptr
),
Len
:
int
(
byteCount
),
Cap
:
int
(
byteCount
),
}
}
func
CurrentOwner
()
*
Owner
{
...
...
fuse/nodefs/fsmount.go
View file @
60423690
...
...
@@ -50,7 +50,6 @@ func (m *fileSystemMount) mountName() string {
}
}
panic
(
"not found"
)
return
""
}
func
(
m
*
fileSystemMount
)
setOwner
(
attr
*
fuse
.
Attr
)
{
...
...
fuse/nodefs/fsops.go
View file @
60423690
...
...
@@ -139,8 +139,8 @@ func (c *rawBridge) OpenDir(input *fuse.OpenIn, out *fuse.OpenOut) (code fuse.St
de
:=
&
connectorDir
{
node
:
node
.
Node
(),
stream
:
append
(
stream
,
fuse
.
DirEntry
{
fuse
.
S_IFDIR
,
"."
},
fuse
.
DirEntry
{
fuse
.
S_IFDIR
,
".."
}),
fuse
.
DirEntry
{
Mode
:
fuse
.
S_IFDIR
,
Name
:
"."
},
fuse
.
DirEntry
{
Mode
:
fuse
.
S_IFDIR
,
Name
:
".."
}),
rawFS
:
c
,
}
h
,
opened
:=
node
.
mount
.
registerFileHandle
(
node
,
de
,
nil
,
input
.
Flags
)
...
...
fuse/opcode.go
View file @
60423690
...
...
@@ -235,7 +235,11 @@ func doBatchForget(server *Server, req *request) {
len
(
req
.
arg
),
wantBytes
,
in
.
Count
)
}
h
:=
&
reflect
.
SliceHeader
{
uintptr
(
unsafe
.
Pointer
(
&
req
.
arg
[
0
])),
int
(
in
.
Count
),
int
(
in
.
Count
)}
h
:=
&
reflect
.
SliceHeader
{
Data
:
uintptr
(
unsafe
.
Pointer
(
&
req
.
arg
[
0
])),
Len
:
int
(
in
.
Count
),
Cap
:
int
(
in
.
Count
),
}
forgets
:=
*
(
*
[]
_ForgetOne
)(
unsafe
.
Pointer
(
h
))
for
_
,
f
:=
range
forgets
{
...
...
fuse/pathfs/owner_test.go
View file @
60423690
...
...
@@ -77,7 +77,7 @@ func TestOwnerRoot(t *testing.T) {
}
func
TestOwnerOverride
(
t
*
testing
.
T
)
{
wd
,
cleanup
:=
setupOwnerTest
(
t
,
&
nodefs
.
Options
{
Owner
:
&
fuse
.
Owner
{
42
,
43
}})
wd
,
cleanup
:=
setupOwnerTest
(
t
,
&
nodefs
.
Options
{
Owner
:
&
fuse
.
Owner
{
Uid
:
42
,
Gid
:
43
}})
defer
cleanup
()
var
stat
syscall
.
Stat_t
...
...
unionfs/unionfs_test.go
View file @
60423690
...
...
@@ -336,7 +336,7 @@ func TestUnionFsBasic(t *testing.T) {
WriteFile
(
t
,
wd
+
"/mnt/new"
,
"new contents"
)
if
!
fileExists
(
wd
+
"/rw/new"
)
{
t
.
Errorf
(
"missing file in rw layer
"
,
names
)
t
.
Errorf
(
"missing file in rw layer
: %s"
,
wd
+
"/rw/new"
)
}
contents
:=
readFromFile
(
t
,
wd
+
"/mnt/new"
)
...
...
@@ -345,7 +345,7 @@ func TestUnionFsBasic(t *testing.T) {
}
WriteFile
(
t
,
wd
+
"/mnt/ro1"
,
"promote me"
)
if
!
fileExists
(
wd
+
"/rw/ro1"
)
{
t
.
Errorf
(
"missing file in rw layer
"
,
names
)
t
.
Errorf
(
"missing file in rw layer
: %s"
,
wd
+
"/mnt/ro1"
)
}
err
:=
os
.
Remove
(
wd
+
"/mnt/new"
)
...
...
zipfs/multizip_test.go
View file @
60423690
...
...
@@ -100,7 +100,7 @@ func TestMultiZipFs(t *testing.T) {
t
.
Fatalf
(
"Lstat failed: %v"
,
err
)
}
if
!
fi
.
IsDir
()
{
t
.
Fatal
(
"expect directory for /zipmount, got %v"
,
fi
)
t
.
Fatal
f
(
"expect directory for /zipmount, got %v"
,
fi
)
}
// Check that zipfs itself works.
...
...
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