Skip to content

inaccurate disk size on windows#325

Open
sspring wants to merge 2 commits intojaypipes:mainfrom
sspring:main
Open

inaccurate disk size on windows#325
sspring wants to merge 2 commits intojaypipes:mainfrom
sspring:main

Conversation

@sspring
Copy link

@sspring sspring commented Jul 16, 2022

wmi report inaccurate disk size, refer : https://stackoverflow.com/questions/9901792/wmi-win32-diskdrive-to-get-total-sector-on-the-physical-disk-drive
replace Win32_DiskDrive with DeviceIOControl.

wmi report inaccurate disk size, refer : https://stackoverflow.com/questions/9901792/wmi-win32-diskdrive-to-get-total-sector-on-the-physical-disk-drive  
replace Win32_DiskDrive with DeviceIOControl.
@ffromani
Copy link
Collaborator

thanks for this contribution @sspring ! could you please add a unit test to ensure this code doesn't regress? None of the active main contributors is a windows user, so this is especially important, as we rely on CI for correctness.

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.

3 participants

Comments