psutil icon indicating copy to clipboard operation
psutil copied to clipboard

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

Open mx-psi opened this issue 2 years ago • 2 comments

Summary

  • OS: Windows
  • Bug fix: yes (debatable?)
  • Type: core
  • Fixes: #1974

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 avatar Aug 09 '21 09:08 mx-psi

@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 avatar Sep 08 '21 15:09 mx-psi

@giampaolo friendly ping, could you have a look?

mx-psi avatar Oct 19 '21 12:10 mx-psi