-
Notifications
You must be signed in to change notification settings - Fork 3k
ExhaustibleBlockDevice: revert commit 10481f2 #12919
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Reverts commit 10481f2 partially. Changes made to ExhaustibleBlockDevice hides simulated flash degradation which is the assumed behavior. Converted back to original behavior.
@VeijoPesonen, thank you for your changes. |
CI started meanwhile |
Test run: FAILEDSummary: 1 of 3 test jobs failed Failed test jobs:
|
As expected, unittest failed |
I reproduced those locally and can provide a fix soon. |
@VeijoPesonen , @0xc0170 I added a commit with the unittests fixes on my fork: https://github.com/michalpasztamobica/mbed-os/commits/fix_blockdevice |
I'm just assuming that it was developed to simulate flash behaviour, and in many cases the flash writing might fail, and only way to ensure that is to read back the content. Therefore not returning error, when we don't write, is the closest possible behaviour of that imaginary driver on dying flash. |
@0xc0170 I cherry-picked @michalpasztamobica's unit tests changes. |
Need to admit this was a bit hard to figure out what is the right behavior. Maybe if flash would be having ECC enabled we would get proper errors if writes fail. I don't really know. |
CI started |
Test run: SUCCESSSummary: 6 of 6 test jobs passed |
Fixes #12832. Reverts commit 10481f2 partially.
Changes made to ExhaustibleBlockDevice hides simulated flash degradation
which is the assumed behavior. Converted back to original behavior writes fail silently.
I'm a bit unsure is this the correct way to handle things but I made an assumption that the ExhaustibleBlockDevice is supposed to silently discard writes instead of producing errors.
Summary of changes
Impact of changes
Migration actions required
Documentation
Pull request type
Test results
Reviewers
@0xc0170
@michalpasztamobica
@SeppoTakalo