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
34673e47
Commit
34673e47
authored
May 14, 2014
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fuse/nodefs: Reuse node ID in Unmount
parent
a95445ae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
fuse/nodefs/fsconnector.go
fuse/nodefs/fsconnector.go
+3
-3
No files found.
fuse/nodefs/fsconnector.go
View file @
34673e47
...
...
@@ -298,7 +298,7 @@ func (c *FileSystemConnector) Unmount(node *Inode) fuse.Status {
return
fuse
.
EINVAL
}
nodeI
d
:=
c
.
inodeMap
.
Handle
(
&
node
.
handled
)
nodeI
D
:=
c
.
inodeMap
.
Handle
(
&
node
.
handled
)
// Must lock parent to update tree structure.
parentNode
:=
node
.
mountPoint
.
parentInode
...
...
@@ -336,7 +336,7 @@ func (c *FileSystemConnector) Unmount(node *Inode) fuse.Status {
// We have to wait until the kernel has forgotten the
// mountpoint, so the write to node.mountPoint is no longer
// racy.
code
:=
c
.
server
.
DeleteNotify
(
parentId
,
c
.
inodeMap
.
Handle
(
&
node
.
handled
)
,
name
)
code
:=
c
.
server
.
DeleteNotify
(
parentId
,
nodeID
,
name
)
if
code
.
Ok
()
{
mount
.
treeLock
.
Unlock
()
parentNode
.
mount
.
treeLock
.
Unlock
()
...
...
@@ -347,7 +347,7 @@ func (c *FileSystemConnector) Unmount(node *Inode) fuse.Status {
// contention.
time
.
Sleep
(
delay
)
delay
=
delay
*
2
if
!
c
.
inodeMap
.
Has
(
nodeI
d
)
{
if
!
c
.
inodeMap
.
Has
(
nodeI
D
)
{
break
}
...
...
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