POSIX: adjust source file ctime

SeaweedFS uses mtime as ctime
This commit is contained in:
chrislu 2022-01-12 21:45:18 -08:00
parent b44f05a2d0
commit d400a11832

View file

@ -57,6 +57,7 @@ func (dir *Dir) Link(ctx context.Context, req *fuse.LinkRequest, old fs.Node) (f
}
// CreateLink 1.2 : update new file to hardlink mode
oldEntry.Attributes.Mtime = time.Now().Unix()
request := &filer_pb.CreateEntryRequest{
Directory: dir.FullPath(),
Entry: &filer_pb.Entry{