Page 1 of 1

drive information with large filesystems are not correct

Posted: 23 Aug 2009, 08:40
by JSn
Hello,

not sure if this was posted in the past. (my first post :) )
The drive information (Ctrl-F1) does not show more than 2TB. I set up a cifs storage system with about 4TB capacity. But only 2TB are shown.
In Explorer Windows 7 Ultimate it´s correct shown as 4TB

Regards Juergen

Re: drive information with large filesystems are not correct

Posted: 23 Aug 2009, 09:17
by Jan Rysavy
Hi Juergen, what version of Salamander are you using? Could you please try AS 2.52 beta 2?

Also please try to open Help > Report Bug window and look to "Drives" section (at the end of report).
Is the reported drive size correct there?

Re: drive information with large filesystems are not correct

Posted: 24 Aug 2009, 19:06
by JSn
Yes, Sal 2.52 beta2. In the drive bar the correct free space (3,96TB) is shown.

Re: drive information with large filesystems are not correct

Posted: 24 Aug 2009, 19:10
by JSn
ah, now I understand: No, it´s not correct in the bug report:
Altap Salamander 2.52 beta 2

Drives:
.....
W:\ [remote]
LB: server SN: 748A-9B92 FL: 0x0004002E FS: NTFS LN: yes
BytePerSec: 512 SecPerClus: 1 Clusters: 4.294.967.295
Capacity: 2 TB Free: 2 TB Used: 0 B
Device: \Device\LanmanRedirector\;W:000000000002c13e\192.168.25.120\server_graphs
......
End.

Re: drive information with large filesystems are not correct

Posted: 25 Aug 2009, 10:19
by WL
It always worked correctly here. Maybe it's because of too many Clusters.
Here's my Output:
BytePerSec: 512 SecPerClus: 8 Clusters: 732.571.647
Capacity: 2,73 TB Free: 141 GB Used: 2,59 TB

Re: drive information with large filesystems are not correct

Posted: 25 Aug 2009, 13:50
by Petr Solin
Problem is clear: GetDiskFreeSpace function returns DWORD values, so if there is more than 4294967296 clusters, the function has no chance to return correct value. We should use only GetDiskFreeSpaceEx variant which returns ULARGE_INTEGER values (64-bit unsigned int), but it does not return sector and cluster size, so old half-working GetDiskFreeSpace is unfortunately still needed. I'll make source code revision and correct this problem. Sorry for inconvenience and thanks for reporting this problem!

Re: drive information with large filesystems are not correct

Posted: 26 Aug 2009, 16:42
by Petr Solin
Fixed. It will be available in final version 2.52.