Browse Source

minor

pull/1502/head
Chris Lu 4 years ago
parent
commit
7726965a47
  1. 2
      weed/filesys/dir_link.go

2
weed/filesys/dir_link.go

@ -32,7 +32,7 @@ func (dir *Dir) Link(ctx context.Context, req *fuse.LinkRequest, old fs.Node) (f
}
// update old file to hardlink mode
if oldFile.entry.HardLinkId == nil {
if len(oldFile.entry.HardLinkId) == 0 {
oldFile.entry.HardLinkId = util.RandomBytes(16)
oldFile.entry.HardLinkCounter = 1
}

Loading…
Cancel
Save