Closed GoogleCodeExporter closed 9 years ago
Closing out as a duplicate of issue 234.
Original comment by g.rodola
on 26 Feb 2013 at 11:01
Probably not duplicate - after building with fix for issue 234, the problem
still exists. Also, I always had PhysicalDrives numbered from 0. I found two
things:
1. Disk statistics need to be turned on with 'diskperf -y' command executed
from Windows cmd. Otherwise DeviceIoControl fails with ERROR_INVALID_FUNCTION.
2. MinGW has incorrect (old?) definition of DISK_PERFORMANCE structure. It is
too short and DeviceIoControl fails with ERROR_INSUFFICIENT_BUFFER error. As
workaround, correct structure can be defined and passed to DeviceIoControl.
Patch fixing this problem is attached.
Could you include 1. in the documentation? According to the web it is
applicable to Windows Server versions 2003 and later.
Original comment by m.maly...@gmail.com
on 12 Apr 2013 at 11:31
Attachments:
I fixed 2) in revision 4d5b0de27024, thanks.
As for the issue per-se and issue 234 can we assume they are fixed if 'diskperf
-y' command is executed first?
Original comment by g.rodola
on 12 Apr 2013 at 1:28
Original comment by g.rodola
on 12 Apr 2013 at 2:09
Original comment by g.rodola
on 12 Apr 2013 at 6:21
Original issue reported on code.google.com by
m.maly...@gmail.com
on 13 Feb 2013 at 4:25