fix docker
This commit is contained in:
parent
6699691663
commit
75d17267d7
3 changed files with 5 additions and 4 deletions
src/host
|
@ -341,11 +341,11 @@ func (s *DataStorage) dedupeFiles(ctx context.Context, paths []string) (deduped
|
|||
return deduped, err
|
||||
}
|
||||
|
||||
if fsStat.Bsize > srcSize { // for btrfs it means file in residing in not deduplicatable metadata
|
||||
if int64(fsStat.Bsize) > srcSize { // for btrfs it means file in residing in not deduplicatable metadata
|
||||
return deduped, nil
|
||||
}
|
||||
|
||||
blockSize := uint64((srcSize % fsStat.Bsize) * fsStat.Bsize)
|
||||
blockSize := uint64((srcSize % int64(fsStat.Bsize)) * int64(fsStat.Bsize))
|
||||
|
||||
span.SetAttributes(attribute.Int64("blocksize", int64(blockSize)))
|
||||
|
||||
|
|
|
@ -231,6 +231,7 @@ func (fs *TorrentFs) rawStat(ctx context.Context, filename string) (fs.FileInfo,
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
file, err := getFile(files, filename)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue