[jcifs] SmbFile.getDiskFreeSpace bug

Michael B Allen mba2000 at ioplex.com
Fri Apr 8 02:59:00 GMT 2005


Applied to my dev branch.

Thanks,
Mike

Thomas Krammer said:
>
>> The Windows Explorer is reporting the correct value. Windows XP is
>> using information level 1007 instead of information level 1 which
>> JCIFS uses. According the the Samba sources this is
>>
>> #define SMB_FS_FULL_SIZE_INFORMATION            1007
>>
>> It returns the following information (see trans2.c in the Samba
>> sources):
>>
>> int64 Total allocation units
>> int64 Caller available allocation units
>> int64 Actual available allocation units
>> int32 Sectors per allocation unit
>> int32 Bytes per sector
>>
>> So it returns the block counts as 64 bit integers instead of 32 bit
>> integers.


More information about the jcifs mailing list