Skip to content

Commit

Permalink
f3probe: allow errno == ENODATA when calling read(2)
Browse files Browse the repository at this point in the history
The errno ENODATA is not documented in the manual, but according
to the comment the following comment, it behaves like EIO.

#82 (comment)
  • Loading branch information
AltraMayor committed Feb 11, 2020
1 parent 7e29f43 commit 3c19d21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libdevs.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ static int read_all(int fd, char *buf, size_t count)
if (rc < 0) {
if (errno == EINTR)
continue;
assert(errno == EIO);
assert(errno == EIO || errno == ENODATA);
return - errno;
}
assert(rc != 0); /* We should never hit the end of the file. */
Expand Down

0 comments on commit 3c19d21

Please sign in to comment.