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

disk_io_counters not show flash disk #234

Closed
giampaolo opened this issue May 23, 2014 · 10 comments
Closed

disk_io_counters not show flash disk #234

giampaolo opened this issue May 23, 2014 · 10 comments

Comments

@giampaolo
Copy link
Owner

From kotsifi on December 06, 2011 00:40:10

What steps will reproduce the problem?  
1. connect my usb flash disk
2.run: psutil.disk_io_counters(perdisk=True) 

What is the expected output?  
{'PhysicalDrive2': iostat(blablabla), 'PhysicalDrive1': iostat(blablabla), 
'PhysicalDrive0':iostat(blablabla)} 

What do you see instead?  
{'PhysicalDrive1': iostat(blablabla), 'PhysicalDrive0':iostat(blablabla)} 

What version of psutil are you using? What Python version?  
psutil:0.4
python 2.7 

On what operating system? Is it 32bit or 64bit version?  
Windows XP 32bit (guest on VirtualBox) 

Please provide any additional information below.  
Screenshot that shows the problem: 
http://dl.dropbox.com/u/1320617/Linux_Photos/win_psutil_winobj.jpeg

Original issue: http://code.google.com/p/psutil/issues/detail?id=234

@giampaolo giampaolo self-assigned this May 23, 2014
@giampaolo
Copy link
Owner Author

From g.rodola on December 06, 2011 11:33:15

Comment entered by Jay in r1234 seems reasonable.
Jeremy? Comments?

Status: WaitingForReview
Owner: jcscoob...@gmail.com
Labels: OpSys-Windows

@giampaolo
Copy link
Owner Author

From jlo...@gmail.com on December 06, 2011 12:07:25

Yeah, I meant to update this issue the other day but got sidetracked. I went to 
test this on my VMWare Fusion Windows 2003 system and discovered that 
disk_io_counters(perdisk=True) returns an empty dict for me. Obviously that's 
not correct as there are valid disks on my system, and winobj shows 
PhysicalDisk0 etc.

I'm not sure what's going on but it looks to me like the PhysicalDisk0 is 
returning an invalid handle and hits the break statement, short circuiting the 
rest of the iteration. Question I guess is why the invalid handle would be 
getting received and what if anything can we do about it.

@giampaolo
Copy link
Owner Author

From kotsifi on December 07, 2011 16:47:01

Why the invalid handle would be getting received and what if anything can we do 
about it? :D

@giampaolo
Copy link
Owner Author

From g.rodola on March 06, 2012 04:55:00

Jay can you look into this on your 2003 box?
I can't reproduce the problem you're descripbing on Win XP/7.

@giampaolo
Copy link
Owner Author

From g.rodola on February 26, 2013 03:00:17

I should have fixed this in r1569 .
Since there's apparently no way to figure out how many drives we should expect 
I set a maximum of 32 iterations, which is higher than the number of letters in 
the alphabet (A:\ -> Z:\, aka 26 possibilities).
kotsifi, Jay: if you guys have the possibility to confirm this is fixed (I 
don't as I couldn't reproduce the issue in the first place) please confirm, 
otherwise I'm going to assume this is fixed.

Status: FixedInSVN
Labels: Milestone-0.6.2

@giampaolo
Copy link
Owner Author

From g.rodola on February 26, 2013 03:01:09

Issue 351 has been merged into this issue.

@giampaolo
Copy link
Owner Author

From g.rodola on March 02, 2013 04:05:56

Updated csets after the SVN -> Mercurial migration: r1234 == revision 
2e132af492b5 r1569 == revision 71bd74c64344

@giampaolo
Copy link
Owner Author

From g.rodola on April 07, 2013 18:21:49

Status: FixedInHG

@giampaolo
Copy link
Owner Author

From g.rodola on April 11, 2013 02:17:39

Labels: -Milestone-0.6.2 Milestone-0.7.0

@giampaolo
Copy link
Owner Author

From g.rodola on April 12, 2013 11:21:26

Status: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant