Browse Source

POSIX: adjust source file ctime

SeaweedFS uses mtime as ctime
pull/2590/head
chrislu 3 years ago
parent
commit
d400a11832
  1. 1
      weed/filesys/dir_link.go

1
weed/filesys/dir_link.go

@ -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{

Loading…
Cancel
Save