Increase maximum allowed file size to 10 Mblocks

Upgrade FileInfo up to 10000000 blocks. 1310 GB files can be shared.
Increase limit when unmarshaling XDR.
Increase the size of message.
This commit is contained in:
Laurent Etiemble
2016-02-19 20:47:31 +01:00
committed by Jakob Borg
parent ac2343ea57
commit c8b6e6fd9b
4 changed files with 12 additions and 12 deletions

View File

@@ -27,7 +27,7 @@ type FileInfo struct {
Version Vector
LocalVersion int64
CachedSize int64 // noencode (cache only)
Blocks []BlockInfo // max:1000000
Blocks []BlockInfo // max:10000000
}
func (f FileInfo) String() string {