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
2121012d
Commit
2121012d
authored
Sep 26, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Recursively mark files changed on directory move.
parent
cba6dd5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
unionfs/memunionfs.go
unionfs/memunionfs.go
+11
-2
No files found.
unionfs/memunionfs.go
View file @
2121012d
...
...
@@ -160,8 +160,7 @@ func NewMemUnionFs(backingStore string, roFs fuse.FileSystem) *MemUnionFs {
me
.
backingStore
=
backingStore
me
.
readonly
=
roFs
me
.
root
=
me
.
newNode
(
true
)
fi
,
_
:=
roFs
.
GetAttr
(
""
,
nil
)
me
.
root
.
info
=
*
fi
me
.
root
.
info
.
Mode
=
fuse
.
S_IFDIR
|
0755
me
.
cond
=
sync
.
NewCond
(
&
me
.
mutex
)
return
me
}
...
...
@@ -273,10 +272,20 @@ func (me *memNode) Rename(oldName string, newParent fuse.FsNode, newName string,
newParent
.
Inode
()
.
RmChild
(
newName
)
newParent
.
Inode
()
.
AddChild
(
newName
,
ch
)
me
.
deleted
[
newName
]
=
false
,
false
me
.
markChanged
()
me
.
touch
()
return
fuse
.
OK
}
// TODO - test this.
func
(
me
*
memNode
)
markChanged
()
{
me
.
changed
=
true
for
_
,
n
:=
range
me
.
Inode
()
.
FsChildren
()
{
n
.
FsNode
()
.
(
*
memNode
)
.
markChanged
()
}
}
func
(
me
*
memNode
)
Link
(
name
string
,
existing
fuse
.
FsNode
,
context
*
fuse
.
Context
)
(
fi
*
os
.
FileInfo
,
newNode
fuse
.
FsNode
,
code
fuse
.
Status
)
{
me
.
Inode
()
.
AddChild
(
name
,
existing
.
Inode
())
fi
,
code
=
existing
.
GetAttr
(
nil
,
context
)
...
...
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