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
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:
parent
6699691663
commit
75d17267d7
3 changed files with 5 additions and 4 deletions
4
.github/workflows/docker.yaml
vendored
4
.github/workflows/docker.yaml
vendored
|
@ -19,10 +19,10 @@ jobs:
|
|||
- linux/amd64
|
||||
- linux/arm64
|
||||
- linux/386
|
||||
- linux/arm/v5
|
||||
# - linux/arm/v5
|
||||
- linux/arm/v7
|
||||
- linux/arm64/v8
|
||||
- linux/riscv64
|
||||
# - linux/riscv64
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
|
|
|
@ -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…
Reference in a new issue