Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Retry I/O operations up to 10 times on EIO when writing to the drive #73

Merged
merged 1 commit into from Jan 4, 2017

Conversation

jviotti
Copy link
Contributor

@jviotti jviotti commented Jan 4, 2017

Some faulty SDCards present sporadic EIO errors that usually go away
after some retries.

Signed-off-by: Juan Cruz Viotti jviotti@openmailbox.org

@jviotti
Copy link
Contributor Author

jviotti commented Jan 4, 2017

This PR is a subset of #70. The referenced PR fails on Windows when our EIO retry approach is applied to the read stream, so this PR includes the changes that we know work fine in order to at least cover half of the issue while we keep debugging the read problems on Windows.

Some faulty SDCards present sporadic EIO errors that usually go away
after some retries.

Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
@jviotti jviotti changed the title Retry I/O operationgs up to 10 times on EIO when writing to the drive Retry I/O operations up to 10 times on EIO when writing to the drive Jan 4, 2017
@jviotti jviotti merged commit a27640c into master Jan 4, 2017
@jviotti jviotti deleted the eio-write branch January 4, 2017 21:45
jviotti pushed a commit to balena-io/etcher that referenced this pull request Jan 4, 2017
- balena-io-modules/etcher-image-write#73

Changelog-Entry: Fix "EIO: i/o error, write" error.
Change-Type: patch
Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
jviotti pushed a commit to balena-io/etcher that referenced this pull request Jan 4, 2017
- balena-io-modules/etcher-image-write#73

Fixes: #834
Changelog-Entry: Fix "EIO: i/o error, write" error.
Change-Type: patch
Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
jviotti pushed a commit that referenced this pull request Jan 4, 2017
Some faulty SDCard, or SDCard readers might throw EIO when reading data.
Retrying a couple of times makes the issue go away.

See: #73
Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
jviotti pushed a commit to balena-io/etcher that referenced this pull request Jan 5, 2017
- balena-io-modules/etcher-image-write#73

Fixes: #834
Changelog-Entry: Fix "EIO: i/o error, write" error.
Change-Type: patch
Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
jviotti pushed a commit that referenced this pull request Jan 5, 2017
Some faulty SDCard, or SDCard readers might throw EIO when reading data.
Retrying a couple of times makes the issue go away.

See: #73
Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
jviotti pushed a commit that referenced this pull request Jan 5, 2017
Some faulty SDCard, or SDCard readers might throw EIO when reading data.
Retrying a couple of times makes the issue go away.

See: #73
Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
jviotti pushed a commit that referenced this pull request Jan 5, 2017
Some faulty SDCard, or SDCard readers might throw EIO when reading data.
Retrying a couple of times makes the issue go away.

See: #73
Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
jviotti pushed a commit that referenced this pull request Jan 5, 2017
Some faulty SDCard, or SDCard readers might throw EIO when reading data.
Retrying a couple of times makes the issue go away.

See: #73
Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
jviotti pushed a commit that referenced this pull request Jan 5, 2017
Some faulty SDCard, or SDCard readers might throw EIO when reading data.
Retrying a couple of times makes the issue go away.

See: #73
Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
jviotti pushed a commit that referenced this pull request Jan 5, 2017
Some faulty SDCard, or SDCard readers might throw EIO when reading data.
Retrying a couple of times makes the issue go away.

See: #73
Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant