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
854cacde
Commit
854cacde
authored
Sep 08, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix autounion.go
parent
e093cf0f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
fuse/pathfs.go
fuse/pathfs.go
+3
-1
unionfs/autounion.go
unionfs/autounion.go
+2
-2
No files found.
fuse/pathfs.go
View file @
854cacde
...
...
@@ -29,7 +29,9 @@ type PathNodeFs struct {
func
(
me
*
PathNodeFs
)
Mount
(
path
string
,
nodeFs
NodeFileSystem
,
opts
*
FileSystemOptions
)
Status
{
dir
,
name
:=
filepath
.
Split
(
path
)
dir
=
filepath
.
Clean
(
dir
)
if
dir
!=
""
{
dir
=
filepath
.
Clean
(
dir
)
}
parent
:=
me
.
Node
(
dir
)
if
parent
==
nil
{
return
ENOENT
...
...
unionfs/autounion.go
View file @
854cacde
...
...
@@ -111,7 +111,7 @@ func (me *AutoUnionFs) createFs(name string, roots []string) fuse.Status {
log
.
Printf
(
"Adding workspace %v for roots %v"
,
name
,
ufs
.
Name
())
nfs
:=
fuse
.
NewPathNodeFs
(
ufs
)
code
:=
me
.
nodeFs
.
Mount
(
me
.
nodeFs
.
Root
()
.
Inode
(),
name
,
nfs
,
&
me
.
options
.
FileSystemOptions
)
code
:=
me
.
nodeFs
.
Mount
(
name
,
nfs
,
&
me
.
options
.
FileSystemOptions
)
if
code
.
Ok
()
{
me
.
knownFileSystems
[
name
]
=
knownFs
{
ufs
,
...
...
@@ -131,7 +131,7 @@ func (me *AutoUnionFs) rmFs(name string) (code fuse.Status) {
return
fuse
.
ENOENT
}
code
=
me
.
nodeFs
.
Unmount
(
known
.
PathNodeFs
.
Root
()
.
Inode
()
)
code
=
me
.
nodeFs
.
Unmount
(
name
)
if
code
.
Ok
()
{
me
.
knownFileSystems
[
name
]
=
knownFs
{},
false
me
.
nameRootMap
[
name
]
=
""
,
false
...
...
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