fix docker
All checks were successful
docker / build-docker (linux/amd64) (push) Successful in 3m57s
docker / build-docker (linux/386) (push) Successful in 4m9s
docker / build-docker (linux/arm64) (push) Successful in 18m19s
docker / build-docker (linux/arm64/v8) (push) Successful in 18m26s
docker / build-docker (linux/arm/v7) (push) Successful in 19m18s

This commit is contained in:
royalcat 2024-03-29 09:53:52 +03:00
parent 6699691663
commit 75d17267d7
3 changed files with 5 additions and 4 deletions

View file

@ -19,10 +19,10 @@ jobs:
- linux/amd64 - linux/amd64
- linux/arm64 - linux/arm64
- linux/386 - linux/386
- linux/arm/v5 # - linux/arm/v5
- linux/arm/v7 - linux/arm/v7
- linux/arm64/v8 - linux/arm64/v8
- linux/riscv64 # - linux/riscv64
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repository - name: Checkout repository

View file

@ -341,11 +341,11 @@ func (s *DataStorage) dedupeFiles(ctx context.Context, paths []string) (deduped
return deduped, err 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 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))) span.SetAttributes(attribute.Int64("blocksize", int64(blockSize)))

View file

@ -231,6 +231,7 @@ func (fs *TorrentFs) rawStat(ctx context.Context, filename string) (fs.FileInfo,
if err != nil { if err != nil {
return nil, err return nil, err
} }
file, err := getFile(files, filename) file, err := getFile(files, filename)
if err != nil { if err != nil {
return nil, err return nil, err