Skip to content

short terminated read calls to the os in costream, ecd2 #2

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
Unclear yet. Usually operation over several hours, sometimes under
increased system load by other processes on the machine.

What is the expected output?
Termination of costream with file inconstency message, a trace in the ecd
log files of similar flavour.

Problem description: At various places in the code, read(2) statements are
called without proper handling of return values where less than the file
size or requested buffer size are filled into the buffer. This results in a
failure of content consistency checks, and a subsequent abort of the normal
flow.

At some parts in the code, the problem is addressed by reading the length
of a file with a stat command, but it seems a bit bulky to implement that
for all read attempts.

Suggestions welcome.

Original issue reported on code.google.com by christia...@gmail.com on 9 Nov 2008 at 10:20

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions