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
106da11f
Commit
106da11f
authored
Apr 21, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix naming in example too.
parent
e8c28231
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
example/loopback/loopback.go
example/loopback/loopback.go
+5
-5
No files found.
example/loopback/loopback.go
View file @
106da11f
...
@@ -16,7 +16,7 @@ var _ = runtime.GOMAXPROCS
...
@@ -16,7 +16,7 @@ var _ = runtime.GOMAXPROCS
var
_
=
log
.
Print
var
_
=
log
.
Print
type
PathPrintingFs
struct
{
type
PathPrintingFs
struct
{
fuse
.
WrappingPathFile
s
ystem
fuse
.
WrappingPathFile
S
ystem
}
}
func
(
me
*
PathPrintingFs
)
GetAttr
(
name
string
)
(
*
fuse
.
Attr
,
fuse
.
Status
)
{
func
(
me
*
PathPrintingFs
)
GetAttr
(
name
string
)
(
*
fuse
.
Attr
,
fuse
.
Status
)
{
...
@@ -35,15 +35,15 @@ func main() {
...
@@ -35,15 +35,15 @@ func main() {
os
.
Exit
(
2
)
os
.
Exit
(
2
)
}
}
var
fs
fuse
.
PathFile
s
ystem
var
fs
fuse
.
PathFile
S
ystem
orig
:=
flag
.
Arg
(
1
)
orig
:=
flag
.
Arg
(
1
)
loopbackfs
:=
fuse
.
NewLoopbackFileSystem
(
orig
)
loopbackfs
:=
fuse
.
NewLoopbackFileSystem
(
orig
)
fs
=
loopbackfs
fs
=
loopbackfs
debugFs
:=
new
(
fuse
.
PathFile
s
ystemDebug
)
debugFs
:=
new
(
fuse
.
PathFile
S
ystemDebug
)
debugFs
.
Original
=
fs
debugFs
.
Original
=
fs
fs
=
debugFs
fs
=
debugFs
timing
:=
fuse
.
NewTimingPathFile
s
ystem
(
fs
)
timing
:=
fuse
.
NewTimingPathFile
S
ystem
(
fs
)
fs
=
timing
fs
=
timing
var
opts
fuse
.
PathFileSystemConnectorOptions
var
opts
fuse
.
PathFileSystemConnectorOptions
...
@@ -53,7 +53,7 @@ func main() {
...
@@ -53,7 +53,7 @@ func main() {
conn
:=
fuse
.
NewPathFileSystemConnector
(
fs
)
conn
:=
fuse
.
NewPathFileSystemConnector
(
fs
)
debugFs
.
Connector
=
conn
debugFs
.
Connector
=
conn
rawTiming
:=
fuse
.
NewTimingRawFile
s
ystem
(
conn
)
rawTiming
:=
fuse
.
NewTimingRawFile
S
ystem
(
conn
)
conn
.
SetOptions
(
opts
)
conn
.
SetOptions
(
opts
)
state
:=
fuse
.
NewMountState
(
rawTiming
)
state
:=
fuse
.
NewMountState
(
rawTiming
)
...
...
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