Bug #4871

kamaki.clients.utils.readall failes with files that have no size (e.g. blockfiles)

Added by Stavros Sachtouris about 10 years ago. Updated about 10 years ago.

Status:Closed Start date:01/10/2014
Priority:High Due date:01/10/2014
Assignee:Stavros Sachtouris % Done:

100%

Category:kamaki Spent time: 1.00 hour
Target version:v0.12 Estimated time:1.00 hour

Description

Problem: to calculate when reading is over, the readall method used to fstat the file
Solution: consider the file has ended when read returns 0 bytes

Associated revisions

Revision e9195e9d
Added by Stavros Sachtouris about 10 years ago

Remove fstat from clients.utils.readall

Refs: #4871

Fstat was used to compute the actual file size in order to
distinguish if an empty read was because the file ended.
It now considers an empty read to be an end of file.

This allows reading non-regular files.

Revision d58df7c0
Added by Stavros Sachtouris about 10 years ago

Remove fstat from clients.utils.readall

Refs: #4871

Fstat was used to compute the actual file size in order to
distinguish if an empty read was because the file ended.
It now considers an empty read to be an end of file.

This allows reading non-regular files.

History

#1 Updated by Stavros Sachtouris about 10 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

#2 Updated by Stavros Sachtouris about 10 years ago

  • Status changed from Resolved to Closed
  • Assignee changed from Stratos Psomadakis to Stavros Sachtouris

Also available in: Atom PDF