Commit df4ba980 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Also Flush file if we are promoting it.

parent 8278f60e
......@@ -308,8 +308,10 @@ func (me *UnionFs) Promote(name string, srcResult branchResult, context *fuse.Co
if uf.layer > 0 {
uf.layer = 0
uf.File.Release()
f := uf.File
uf.File, code = me.fileSystems[0].Open(name, fileWrapper.OpenFlags, context)
f.Flush()
f.Release()
}
}
} else if srcResult.attr.IsSymlink() {
......
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