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

[Windows] Ignore disk I/O counters for drives that are not accessible #1977

Closed
wants to merge 2 commits into from

Conversation

mx-psi
Copy link
Contributor

@mx-psi mx-psi commented Aug 9, 2021

Summary

Description

Ignore permission errors on Windows when fetching I/O counters. I would classify this as a bug fix since this error only happens because of the way the function works (by exhaustively checking every possible drive), and nothing in the function description indicates it should work like this.

Nonetheless I understand it is debatable (see proposed alternative on linked issue if this is not an acceptable patch).

@mx-psi mx-psi force-pushed the mx-psi/permissions-issue branch 2 times, most recently from 2b117e7 to 21d7ce2 Compare August 9, 2021 09:22
@mx-psi mx-psi marked this pull request as ready for review August 9, 2021 09:42
@mx-psi
Copy link
Contributor Author

mx-psi commented Sep 8, 2021

@giampaolo Would it be possible for you to have a look at this?

Also, I wonder if I can have a timeline on when this or my previous PR #1961 will be in a released version of psutil. It would be awesome to be able to share a rough date with customers of my employer who need these fixes.

Thanks in advance :)

@mx-psi mx-psi force-pushed the mx-psi/permissions-issue branch from adf1b82 to 5b8e9c2 Compare October 19, 2021 12:52
@mx-psi
Copy link
Contributor Author

mx-psi commented Oct 19, 2021

@giampaolo friendly ping, could you have a look?

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.

[Windows] Ignore permissions errors on disk_io_counters
1 participant