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
12dc123c
Commit
12dc123c
authored
Sep 08, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make zipfs tests compile and pass.
parent
6201ce0f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
fuse/fsconnector.go
fuse/fsconnector.go
+2
-2
fuse/pathfs.go
fuse/pathfs.go
+4
-0
zipfs/multizip.go
zipfs/multizip.go
+2
-2
No files found.
fuse/fsconnector.go
View file @
12dc123c
...
...
@@ -317,8 +317,8 @@ func (me *FileSystemConnector) Unmount(node *Inode) Status {
parentNode
.
mounts
[
name
]
=
nil
,
false
parentNode
.
children
[
name
]
=
nil
,
false
mount
.
fs
.
OnUnmount
()
me
.
fsInit
.
EntryNotify
(
parentNode
.
nodeId
,
name
)
me
.
EntryNotify
(
parentNode
,
name
)
return
OK
}
...
...
fuse/pathfs.go
View file @
12dc123c
...
...
@@ -39,6 +39,10 @@ func (me *PathNodeFs) Mount(path string, nodeFs NodeFileSystem, opts *FileSystem
return
me
.
connector
.
Mount
(
parent
,
name
,
nodeFs
,
opts
)
}
func
(
me
*
PathNodeFs
)
UnmountNode
(
node
*
Inode
)
Status
{
return
me
.
connector
.
Unmount
(
node
)
}
func
(
me
*
PathNodeFs
)
Unmount
(
path
string
)
Status
{
node
:=
me
.
Node
(
path
)
if
node
==
nil
{
...
...
zipfs/multizip.go
View file @
12dc123c
...
...
@@ -121,7 +121,7 @@ func (me *MultiZipFs) Unlink(name string, context *fuse.Context) (code fuse.Stat
zfs
,
ok
:=
me
.
zips
[
basename
]
if
ok
{
code
=
me
.
nodeFs
.
Unmount
(
zfs
.
Root
()
.
Inode
())
code
=
me
.
nodeFs
.
Unmount
Node
(
zfs
.
Root
()
.
Inode
())
if
!
code
.
Ok
()
{
return
code
}
...
...
@@ -171,7 +171,7 @@ func (me *MultiZipFs) Symlink(value string, linkName string, context *fuse.Conte
return
fuse
.
EINVAL
}
code
=
me
.
nodeFs
.
Mount
(
me
.
nodeFs
.
Root
()
.
Inode
(),
base
,
fs
,
nil
)
code
=
me
.
nodeFs
.
Mount
(
base
,
fs
,
nil
)
if
!
code
.
Ok
()
{
return
code
}
...
...
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