Increase max path length 1024 -> 8192 bytes (fixes #551)

PATH_MAX seems to be 4096 most of the time; Windows limit is much lower.
This commit is contained in:
Jakob Borg
2014-08-25 08:47:59 +02:00
parent 1a174e75d3
commit df65247325
3 changed files with 42 additions and 12 deletions

View File

@@ -12,7 +12,7 @@ type IndexMessage struct {
}
type FileInfo struct {
Name string // max:1024
Name string // max:8192
Flags uint32
Modified int64
Version uint64
@@ -41,7 +41,7 @@ func (f FileInfo) IsDeleted() bool {
// Used for unmarshalling a FileInfo structure but skipping the actual block list
type FileInfoTruncated struct {
Name string // max:1024
Name string // max:8192
Flags uint32
Modified int64
Version uint64
@@ -82,7 +82,7 @@ func (b BlockInfo) String() string {
type RequestMessage struct {
Repository string // max:64
Name string // max:1024
Name string // max:8192
Offset uint64
Size uint32
}