Commit 3c930a5e authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Release promoted open files.

parent ad7c4c71
......@@ -277,6 +277,7 @@ func (me *UnionFs) Promote(name string, srcResult branchResult, context *fuse.Co
uf := f.File.(*UnionFsFile)
if uf.layer > 0 {
uf.layer = 0
uf.File.Release()
uf.File, code = me.fileSystems[0].Open(name, f.OpenFlags, context)
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment