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
6c2b7d8f
Commit
6c2b7d8f
authored
Nov 03, 2016
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some vet errors.
parent
f4003c9b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
all.bash
all.bash
+8
-0
fuse/test/loopback_test.go
fuse/test/loopback_test.go
+2
-2
No files found.
all.bash
View file @
6c2b7d8f
#!/bin/sh
#!/bin/sh
set
-eu
set
-eu
for
d
in
fuse fuse/nodefs fuse/pathfs fuse/test zipfs unionfs
\
example/hello example/loopback example/zipfs
\
example/multizip example/unionfs example/memfs
\
example/autounionfs example/statfs
;
\
do
go build
-o
/dev/null github.com/hanwen/go-fuse/
${
d
}
done
for
d
in
fuse zipfs unionfs fuse/test
for
d
in
fuse zipfs unionfs fuse/test
do
do
...
...
fuse/test/loopback_test.go
View file @
6c2b7d8f
...
@@ -373,14 +373,14 @@ func TestLinkForget(t *testing.T) {
...
@@ -373,14 +373,14 @@ func TestLinkForget(t *testing.T) {
for
_
,
fn
:=
range
[]
string
{
"file1"
,
"file2"
}
{
for
_
,
fn
:=
range
[]
string
{
"file1"
,
"file2"
}
{
fn
=
tc
.
orig
+
"/"
+
fn
fn
=
tc
.
orig
+
"/"
+
fn
if
err
:=
os
.
Remove
(
fn
);
err
!=
nil
{
if
err
:=
os
.
Remove
(
fn
);
err
!=
nil
{
t
.
Fatalf
(
"Remove"
,
err
)
t
.
Fatalf
(
"Remove
: %v
"
,
err
)
}
}
tc
.
WriteFile
(
fn
,
[]
byte
(
c
),
0644
)
tc
.
WriteFile
(
fn
,
[]
byte
(
c
),
0644
)
}
}
for
i
,
fn
:=
range
[]
string
{
"file1"
,
"file2"
}
{
for
i
,
fn
:=
range
[]
string
{
"file1"
,
"file2"
}
{
fn
=
tc
.
mnt
+
"/"
+
fn
fn
=
tc
.
mnt
+
"/"
+
fn
if
err
:=
os
.
Truncate
(
fn
,
int64
(
i
));
err
!=
nil
{
if
err
:=
os
.
Truncate
(
fn
,
int64
(
i
));
err
!=
nil
{
t
.
Fatalf
(
"Truncate"
,
err
)
t
.
Fatalf
(
"Truncate
: %v
"
,
err
)
}
}
}
}
...
...
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