[jcifs] SmbFile.getDiskFreeSpace bug
Michael B Allen
mba2000 at ioplex.com
Wed Jan 26 18:32:27 GMT 2005
On Wed, 26 Jan 2005 14:41:20 +0100
Thomas Krammer <tkrammer at nxn-software.com> wrote:
> Hi,
>
> SmbFile.getDiskFreeSpace() returns a negative value on a share with 2.8
> TB of free disk space (310885233664 bytes to be exact...)
>
> It seems from the code that the free disk space is transfered as a 32
> bit integer (number of free blocks) and a 16 bit integer (block size). I
> guess the 32 bit integer overflows and the result becomes negative.
>
> I'm using JCIFS 0.7.3 but the code to determine the free disk space
> hasn't changed between 0.7.3 and 1.1.7. So I think this bug is also
> present in JCIFS 1.1.7.
Can you get a capture of Windows 2000 / XP querying the value
successfully? We need that to emulate this call properly.
Mike
[1] http://jcifs.samba.org/capture.html
--
Greedo shoots first? Not in my Star Wars.
More information about the jcifs
mailing list