Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@depau
Copy link
Collaborator

@depau depau commented Apr 2, 2025

Hi! I hope you're doing good!

I was working once again on writing QEMU-based end-to-end tests for EtchDroid (which is now easy since GH Actions has nested virtualization support!) and I spotted a new corner case.

If you plug in a USB drive via the QEMU monitor and immediately try to access it, i.e. within 2 seconds, the test unit ready command fails, with sense UNIT ATTENTION, ASC 0x29, ASCQ 0x00 ("Power on, reset, or bus device reset occurred").

I'm currently working around it with a sleep in the tests, but seeing your note I thought I'd work on making this type of failure recoverable.

I attempted to gather a bunch of unit attention conditions which should be recoverable and make them throw NotReadyTryAgain instead of UnitAttention so that the block device init method can give it another shot.

This comment was marked as resolved.

Copy link
Owner

@magnusja magnusja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @depau

I am good hope you too!
As always thanks so much for the improvment and still digging into the details!

@magnusja magnusja merged commit 1ee6dcc into develop Apr 18, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants