lib/protocol: Ensure correct blocksize on enc. fileinfo (ref #7861) (#7870)

This commit is contained in:
Simon Frei
2021-08-04 23:12:01 +02:00
committed by GitHub
parent e56e8b7aa1
commit 50aacdf1f0
3 changed files with 19 additions and 14 deletions
+2 -2
View File
@@ -122,10 +122,10 @@ func (f FileInfo) FileSize() int64 {
}
func (f FileInfo) BlockSize() int {
if f.RawBlockSize == 0 {
if f.RawBlockSize < MinBlockSize {
return MinBlockSize
}
return int(f.RawBlockSize)
return f.RawBlockSize
}
func (f FileInfo) FileName() string {