Errno 22 on seek in pack operation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
New
|
Undecided
|
Unassigned |
Bug Description
We have been experiencing an "errno 22: Invalid argument" error in several operations in bazaar (update, revert, pack). After debugging it appeared that the error was in /bzrlib/
We tried to repair this by reading in larger chunks of the file, but this also generates an "errno 22". We finally fixed it using the following modification:
323c323
< _bytes_
---
> _bytes_
716a717
> print c_offset.start, c_offset.length
718c719,723
< data = fp.read(
---
> max_read = 10000000 # 10MB
> data = ""
> while len(data) < c_offset.length:
> data += fp.read(
> # data = fp.read(
tags: | added: check-for-breezy |