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
cad36b13
Commit
cad36b13
authored
Sep 23, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only print debug if testing with -v.
parent
ca4265a2
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
25 additions
and
20 deletions
+25
-20
fuse/cache_test.go
fuse/cache_test.go
+4
-4
fuse/fsetattr_test.go
fuse/fsetattr_test.go
+1
-1
fuse/loopback_test.go
fuse/loopback_test.go
+2
-3
fuse/memnode_test.go
fuse/memnode_test.go
+2
-2
fuse/misc.go
fuse/misc.go
+7
-1
fuse/notify_test.go
fuse/notify_test.go
+1
-1
fuse/xattr_test.go
fuse/xattr_test.go
+1
-1
unionfs/autounion_test.go
unionfs/autounion_test.go
+2
-2
unionfs/unionfs_test.go
unionfs/unionfs_test.go
+3
-3
zipfs/multizip_test.go
zipfs/multizip_test.go
+1
-1
zipfs/zipfs_test.go
zipfs/zipfs_test.go
+1
-1
No files found.
fuse/cache_test.go
View file @
cad36b13
...
...
@@ -38,9 +38,9 @@ func setupCacheTest() (string, *PathNodeFs, func()) {
pfs
:=
NewPathNodeFs
(
fs
,
nil
)
state
,
conn
,
err
:=
MountNodeFileSystem
(
dir
+
"/mnt"
,
pfs
,
nil
)
CheckSuccess
(
err
)
state
.
Debug
=
true
conn
.
Debug
=
true
pfs
.
Debug
=
true
state
.
Debug
=
VerboseTest
()
conn
.
Debug
=
VerboseTest
()
pfs
.
Debug
=
VerboseTest
()
go
state
.
Loop
()
return
dir
,
pfs
,
func
()
{
...
...
@@ -123,7 +123,7 @@ func TestNonseekable(t *testing.T) {
defer
os
.
RemoveAll
(
dir
)
state
,
_
,
err
:=
MountPathFileSystem
(
dir
,
fs
,
nil
)
CheckSuccess
(
err
)
state
.
Debug
=
true
state
.
Debug
=
VerboseTest
()
defer
state
.
Unmount
()
go
state
.
Loop
()
...
...
fuse/fsetattr_test.go
View file @
cad36b13
...
...
@@ -126,7 +126,7 @@ func setupFAttrTest(fs FileSystem) (dir string, clean func()) {
CheckSuccess
(
err
)
state
,
_
,
err
:=
MountPathFileSystem
(
dir
,
fs
,
nil
)
CheckSuccess
(
err
)
state
.
Debug
=
true
state
.
Debug
=
VerboseTest
()
go
state
.
Loop
()
...
...
fuse/loopback_test.go
View file @
cad36b13
...
...
@@ -82,12 +82,11 @@ func NewTestCase(t *testing.T) *testCase {
rfs
=
me
.
connector
rfs
=
NewLockingRawFileSystem
(
rfs
)
me
.
connector
.
Debug
=
true
me
.
connector
.
Debug
=
VerboseTest
()
me
.
state
=
NewMountState
(
rfs
)
me
.
state
.
Mount
(
me
.
mnt
,
nil
)
//me.state.Debug = false
me
.
state
.
Debug
=
true
me
.
state
.
Debug
=
VerboseTest
()
// Unthreaded, but in background.
go
me
.
state
.
Loop
()
...
...
fuse/memnode_test.go
View file @
cad36b13
...
...
@@ -24,12 +24,12 @@ func setupMemNodeTest(t *testing.T) (wd string, fs *MemNodeFs, clean func()) {
AttrTimeout
:
testTtl
,
NegativeTimeout
:
0.0
,
})
connector
.
Debug
=
true
connector
.
Debug
=
VerboseTest
()
state
:=
NewMountState
(
connector
)
state
.
Mount
(
mnt
,
nil
)
//me.state.Debug = false
state
.
Debug
=
true
state
.
Debug
=
VerboseTest
()
// Unthreaded, but in background.
go
state
.
Loop
()
...
...
fuse/misc.go
View file @
cad36b13
...
...
@@ -3,10 +3,11 @@
package
fuse
import
(
"
os
"
"
flag
"
"fmt"
"log"
"math"
"os"
"reflect"
"strings"
"syscall"
...
...
@@ -153,3 +154,8 @@ func CurrentOwner() *Owner {
Gid
:
uint32
(
os
.
Getgid
()),
}
}
func
VerboseTest
()
bool
{
flag
:=
flag
.
Lookup
(
"test.v"
)
return
flag
!=
nil
&&
flag
.
Value
.
String
()
==
"true"
}
fuse/notify_test.go
View file @
cad36b13
...
...
@@ -56,7 +56,7 @@ func NewNotifyTest() *NotifyTest {
me
.
pathfs
=
NewPathNodeFs
(
me
.
fs
,
nil
)
me
.
state
,
me
.
connector
,
err
=
MountNodeFileSystem
(
me
.
dir
,
me
.
pathfs
,
opts
)
CheckSuccess
(
err
)
me
.
state
.
Debug
=
true
me
.
state
.
Debug
=
VerboseTest
()
go
me
.
state
.
Loop
()
return
me
...
...
fuse/xattr_test.go
View file @
cad36b13
...
...
@@ -98,7 +98,7 @@ func TestXAttrRead(t *testing.T) {
state
,
_
,
err
:=
MountPathFileSystem
(
mountPoint
,
xfs
,
nil
)
CheckSuccess
(
err
)
state
.
Debug
=
true
state
.
Debug
=
VerboseTest
()
defer
state
.
Unmount
()
go
state
.
Loop
()
...
...
unionfs/autounion_test.go
View file @
cad36b13
...
...
@@ -44,8 +44,8 @@ func setup(t *testing.T) (workdir string, cleanup func()) {
fs
:=
NewAutoUnionFs
(
wd
+
"/store"
,
testAOpts
)
state
,
conn
,
err
:=
fuse
.
MountPathFileSystem
(
wd
+
"/mount"
,
fs
,
&
testAOpts
.
FileSystemOptions
)
CheckSuccess
(
err
)
state
.
Debug
=
true
conn
.
Debug
=
true
state
.
Debug
=
fuse
.
VerboseTest
()
conn
.
Debug
=
fuse
.
VerboseTest
()
go
state
.
Loop
()
return
wd
,
func
()
{
...
...
unionfs/unionfs_test.go
View file @
cad36b13
...
...
@@ -58,8 +58,8 @@ func setupUfs(t *testing.T) (workdir string, cleanup func()) {
&
fuse
.
PathNodeFsOptions
{
ClientInodes
:
true
})
state
,
conn
,
err
:=
fuse
.
MountNodeFileSystem
(
wd
+
"/mount"
,
pathfs
,
opts
)
CheckSuccess
(
err
)
conn
.
Debug
=
true
state
.
Debug
=
true
conn
.
Debug
=
fuse
.
VerboseTest
()
state
.
Debug
=
fuse
.
VerboseTest
()
go
state
.
Loop
()
return
wd
,
func
()
{
...
...
@@ -871,7 +871,7 @@ func TestDisappearing(t *testing.T) {
state
,
_
,
err
:=
fuse
.
MountPathFileSystem
(
wd
+
"/mount"
,
ufs
,
opts
)
CheckSuccess
(
err
)
defer
state
.
Unmount
()
state
.
Debug
=
true
state
.
Debug
=
fuse
.
VerboseTest
()
go
state
.
Loop
()
log
.
Println
(
"TestDisappearing2"
)
...
...
zipfs/multizip_test.go
View file @
cad36b13
...
...
@@ -22,7 +22,7 @@ func setupMzfs() (mountPoint string, cleanup func()) {
NegativeTimeout
:
0.0
,
})
CheckSuccess
(
err
)
state
.
Debug
=
true
state
.
Debug
=
fuse
.
VerboseTest
()
go
state
.
Loop
()
return
mountPoint
,
func
()
{
...
...
zipfs/zipfs_test.go
View file @
cad36b13
...
...
@@ -25,7 +25,7 @@ func setupZipfs() (mountPoint string, cleanup func()) {
mountPoint
,
_
=
ioutil
.
TempDir
(
""
,
""
)
state
,
_
,
err
:=
fuse
.
MountNodeFileSystem
(
mountPoint
,
zfs
,
nil
)
state
.
Debug
=
true
state
.
Debug
=
fuse
.
VerboseTest
()
go
state
.
Loop
()
return
mountPoint
,
func
()
{
...
...
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