https://bugs.winehq.org/show_bug.cgi?id=51945
Bug ID: 51945 Summary: property "Size" from win32_logicaldisk gives bogus results Product: Wine Version: 6.19 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: wmi&wbemprox Assignee: wine-bugs@winehq.org Reporter: xerox.xerox2000x@gmail.com Distribution: ---
Hi,
When i do "wine wmic logicaldisk get size"
I seem to get bogus results:
82252800000 82252800000
I have c: and z: in my winecfg and they do not match at all.
Something like "wine wmic logicaldisk get freespace" does work correctly so I suspect some kind of bug?
https://bugs.winehq.org/show_bug.cgi?id=51945
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- It returns some fixed value, see dlls/mountmgr.sys/device.c for IOCTL_DISK_GET_DRIVE_GEOMETRY_EX.
https://bugs.winehq.org/show_bug.cgi?id=51945
Hans Leidekker hans@meelstraat.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|wmi&wbemprox |mountmgr.sys
https://bugs.winehq.org/show_bug.cgi?id=51945
--- Comment #2 from Louis Lenders xerox.xerox2000x@gmail.com --- (In reply to Nikolay Sivov from comment #1)
It returns some fixed value, see dlls/mountmgr.sys/device.c for IOCTL_DISK_GET_DRIVE_GEOMETRY_EX.
Thanks for the info, i see where it comes from now ( 255 * 63 * 512 whereas Windows reports real size of disk)
http://bugs.winehq.org/show_bug.cgi?id=51945
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Component|mountmgr.sys |wmi&wbemprox Resolution|--- |FIXED Fixed by SHA1| |0780f68c9ff0df2070b17cf8425 | |025ae13159b0c
--- Comment #3 from Louis Lenders xerox.xerox2000x@gmail.com --- This seems fixed by yesterdays commit 0780f68c9ff0df2070b17cf8425025ae13159b0c.
Without this patch:
wmic logicaldisk get size Size 82252800000 82252800000
With the patch committed:
wmic logicaldisk get size Size 5325045760 46122553344
which are correct sizes in my case. Thanks Paul.