diff options
| author | chrislu <chris.lu@gmail.com> | 2022-01-12 21:45:18 -0800 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-01-12 21:45:18 -0800 |
| commit | d400a1183235df6f6e50e9a4d8d5c1649bd49192 (patch) | |
| tree | bd0e8ba2310f3b770a2d46137bc7e02f6dae844e | |
| parent | b44f05a2d0696578bef093c39cb981883285ec95 (diff) | |
| download | seaweedfs-d400a1183235df6f6e50e9a4d8d5c1649bd49192.tar.xz seaweedfs-d400a1183235df6f6e50e9a4d8d5c1649bd49192.zip | |
POSIX: adjust source file ctime
SeaweedFS uses mtime as ctime
| -rw-r--r-- | weed/filesys/dir_link.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/filesys/dir_link.go b/weed/filesys/dir_link.go index 423fffb71..7fc98a5a6 100644 --- a/weed/filesys/dir_link.go +++ b/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{ |
