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

UnionFs: update Ctime on truncate too.

parent 197368ab
...@@ -353,7 +353,9 @@ func (me *UnionFs) Truncate(path string, offset uint64) (code fuse.Status) { ...@@ -353,7 +353,9 @@ func (me *UnionFs) Truncate(path string, offset uint64) (code fuse.Status) {
} }
if code.Ok() { if code.Ok() {
r.attr.Size = int64(offset) r.attr.Size = int64(offset)
r.attr.Mtime_ns = time.Nanoseconds() now := time.Nanoseconds()
r.attr.Mtime_ns = now
r.attr.Ctime_ns = now
me.branchCache.Set(path, r) me.branchCache.Set(path, r)
} }
return code return code
......
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