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.IOCounters() fails in virtual windows #1094
Comments
What surprises me here is that if the path is really missing the loop's step should be skipped above, is I won't be able to test in VMWare Player unfortunately, but I implemented this part on Virtualbox though, there shouldn't be much difference in my opinion. |
Hi, it dont collect information after adding check that you proposed but fixed error. Yes, C: is mounted and accesible, but discovered path is incorrect... |
I met with the trouble.
|
|
refer to #883, run |
Thanks for linking the two issues together and finding a workaround @xgfone! That probably explains why I couldn't reproduce #883 on Win7 x32 as it seems to only affect Server editions. As I asked in #883 (comment), can you tell us if you can reproduce again after you run |
@Lomanic I have done the tests as follow.
In conclusion, Windows 7&10 does not use For Windows Servers, we maybe enable it automatically when importing the sub-package |
…utomatically enable diskperf on Server editions Fixes shirou#1094
…utomatically enable diskperf on Server editions Fixes shirou#1094
@xgfone hi, so if we need to monitor windows disk io on windows server. |
@CHN-STUDENT It should have been fixed #1296. |
Describe the bug
Executing of disk.IOCounters() in Virtual Windows (WEMU or VMWare) player results in error:
"The system cannot find the path specified"
To Reproduce
Compile the following code with the CLI: GOOS=windows go build -tags windows -o file.exe file.go
Expected behavior
Returned disk io counters
Additional context
gopsutil/disk/disk_windows.go
Line 167 in ec072d9
The text was updated successfully, but these errors were encountered: