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
76e5775e
Commit
76e5775e
authored
Mar 24, 2013
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fuse: call OnUnmount() for unmounting FUSE too
parent
b20262de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
fuse/fsconnector.go
fuse/fsconnector.go
+7
-1
No files found.
fuse/fsconnector.go
View file @
76e5775e
...
...
@@ -38,6 +38,8 @@ type FileSystemConnector struct {
// Callbacks for talking back to the kernel.
fsInit
RawFsInit
nodeFs
NodeFileSystem
// Translate between uint64 handles and *Inode.
inodeMap
HandleMap
...
...
@@ -62,6 +64,7 @@ func NewFileSystemConnector(nodeFs NodeFileSystem, opts *FileSystemOptions) (c *
if
opts
==
nil
{
opts
=
NewFileSystemOptions
()
}
c
.
nodeFs
=
nodeFs
c
.
inodeMap
=
NewHandleMap
(
opts
.
PortableInodes
)
c
.
rootNode
=
newInode
(
true
,
nodeFs
.
Root
())
...
...
@@ -124,7 +127,10 @@ func (c *FileSystemConnector) lookupUpdate(node *Inode) (id uint64) {
// Must run outside treeLock.
func
(
c
*
FileSystemConnector
)
forgetUpdate
(
nodeID
uint64
,
forgetCount
int
)
{
if
nodeID
==
raw
.
FUSE_ROOT_ID
{
// We never got a lookup for root, so don't try to forget root.
c
.
nodeFs
.
OnUnmount
()
// We never got a lookup for root, so don't try to
// forget root.
return
}
...
...
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