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

(Backport 51956) blockdev: hide blkid errors when are expected #54998

Closed
wants to merge 1 commit into from

Conversation

aplanas
Copy link
Contributor

@aplanas aplanas commented Oct 14, 2019

What does this PR do?

The function _checkblk is called to detect if the device is already
formatted. The first time that we call blkid -o value -s TYPE will
will fail, as the device is still not formatted.

This patch hide this error from the logs (only the ERROR status,
not the stderr output and the retcode), as is an expected error.

Tests written?

No, no change in behavior

(backport #51956, already merged in develop)

The function _checkblk is called to detect if the device is already
formatted. The first time that we call blkid -o value -s TYPE will
will fail, as the device is still not formatted.

This patch hide this error from the logs (only the ERROR status,
not the stderr output and the retcode), as is an expected error.

(cherry picked from commit 504c160)
@dwoz
Copy link
Contributor

dwoz commented Dec 2, 2019

@aplanas Can you please resolve the conflicts here?

@aplanas
Copy link
Contributor Author

aplanas commented Dec 3, 2019

The fix is already in master! So this PR is not needed anymore. Closing and thanks for the reviews!!

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.

4 participants