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
fed54568
Commit
fed54568
authored
Sep 23, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop some debug printout.
parent
cad36b13
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
6 deletions
+1
-6
example/autounionfs/main.go
example/autounionfs/main.go
+1
-0
fuse/fuse.go
fuse/fuse.go
+0
-3
unionfs/unionfs_test.go
unionfs/unionfs_test.go
+0
-3
No files found.
example/autounionfs/main.go
View file @
fed54568
...
...
@@ -46,6 +46,7 @@ func main() {
},
}
fmt
.
Printf
(
"AutoUnionFs - Go-FUSE Version %v.
\n
"
,
fuse
.
Version
())
gofs
:=
unionfs
.
NewAutoUnionFs
(
flag
.
Arg
(
1
),
options
)
pathfs
:=
fuse
.
NewPathNodeFs
(
gofs
,
nil
)
state
,
conn
,
err
:=
fuse
.
MountNodeFileSystem
(
flag
.
Arg
(
0
),
pathfs
,
nil
)
...
...
fuse/fuse.go
View file @
fed54568
...
...
@@ -3,7 +3,6 @@ package fuse
import
(
"log"
"os"
"fmt"
)
var
_
=
log
.
Println
...
...
@@ -11,12 +10,10 @@ var _ = log.Println
func
MountNodeFileSystem
(
mountpoint
string
,
nodeFs
NodeFileSystem
,
opts
*
FileSystemOptions
)
(
*
MountState
,
*
FileSystemConnector
,
os
.
Error
)
{
conn
:=
NewFileSystemConnector
(
nodeFs
,
opts
)
mountState
:=
NewMountState
(
conn
)
fmt
.
Printf
(
"Go-FUSE Version %v.
\n
Mounting...
\n
"
,
Version
())
err
:=
mountState
.
Mount
(
mountpoint
,
nil
)
if
err
!=
nil
{
return
nil
,
nil
,
err
}
fmt
.
Println
(
"Mounted!"
)
return
mountState
,
conn
,
nil
}
...
...
unionfs/unionfs_test.go
View file @
fed54568
...
...
@@ -75,7 +75,6 @@ func writeToFile(path string, contents string) {
func
readFromFile
(
path
string
)
string
{
b
,
err
:=
ioutil
.
ReadFile
(
path
)
fmt
.
Println
(
b
)
CheckSuccess
(
err
)
return
string
(
b
)
}
...
...
@@ -265,7 +264,6 @@ func TestBasic(t *testing.T) {
}
checkMapEq
(
t
,
names
,
expected
)
log
.
Println
(
"new contents"
)
writeToFile
(
wd
+
"/mount/new"
,
"new contents"
)
if
!
fileExists
(
wd
+
"/rw/new"
)
{
t
.
Errorf
(
"missing file in rw layer"
,
names
)
...
...
@@ -275,7 +273,6 @@ func TestBasic(t *testing.T) {
if
contents
!=
"new contents"
{
t
.
Errorf
(
"read mismatch: '%v'"
,
contents
)
}
return
writeToFile
(
wd
+
"/mount/ro1"
,
"promote me"
)
if
!
fileExists
(
wd
+
"/rw/ro1"
)
{
t
.
Errorf
(
"missing file in rw layer"
,
names
)
...
...
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