Skip to content
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

Fix SCSI mount error handling #1642

Merged
merged 1 commit into from
Feb 3, 2023
Merged

Conversation

ambarve
Copy link
Contributor

@ambarve ambarve commented Feb 3, 2023

SCSI mount operation used to check for ENOENT ("no such file or directory") error and used to retry the mount operation because the SCSI device sometimes takes a bit of a time to show up. However, in the recent version of the Linux kernel the error it returns seems to have changed from ENOENT to ENXIO ("no such device or address"). This commit updates the retry logic to retry no matter the error code so that even if the error code changes in the future this won't break.

This also updates a test that used to specifically look for 2000 bits of entropy inside the guest. However, Linux kernel 5.15 has changed the entropy behavior and now it only has 256 bits of entropy (with increased security and performance).

Signed-off-by: Amit Barve ambarve@microsoft.com

@ambarve ambarve requested a review from a team as a code owner February 3, 2023 20:33
SCSI mount operation used to check for ENOENT ("no such file or directory") error and used to retry the mount
operation because the SCSI device sometimes takes a bit of a time to show up. However, in the recent version
of the Linux kernel the error it returns seems to have changed from ENOENT to ENXIO ("no such device or
address"). This commit updates the retry logic to retry for either of those errors.

This also updates a test that used to specifically look for 2000 bits of entropy inside the guest.
However, Linux kernel 5.15 has changed the entropy behavior and now it only has 256 bits of entropy (with
increased security and performance).

Signed-off-by: Amit Barve <ambarve@microsoft.com>
@ambarve ambarve merged commit 420d7fa into microsoft:main Feb 3, 2023
katiewasnothere pushed a commit to katiewasnothere/hcsshim that referenced this pull request Feb 10, 2023
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.

None yet

3 participants