drive information with large filesystems are not correct

Discussion of bugs and problems found in Altap Salamander. In your reports, please be as descriptive as possible, and report one incident per report. Do not post crash reports here, send us the generated bug report by email instead, please.
JSn
Posts: 3
Joined: 23 Aug 2009, 08:25

drive information with large filesystems are not correct

Post 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
Jan Rysavy
ALTAP Staff
ALTAP Staff
Posts: 5231
Joined: 08 Dec 2005, 06:34
Location: Novy Bor, Czech Republic
Contact:

Re: drive information with large filesystems are not correct

Post 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?
JSn
Posts: 3
Joined: 23 Aug 2009, 08:25

Re: drive information with large filesystems are not correct

Post by JSn »

Yes, Sal 2.52 beta2. In the drive bar the correct free space (3,96TB) is shown.
JSn
Posts: 3
Joined: 23 Aug 2009, 08:25

Re: drive information with large filesystems are not correct

Post 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.
WL
Posts: 3
Joined: 30 Jan 2009, 21:00

Re: drive information with large filesystems are not correct

Post 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
Petr Solin
ALTAP Staff
ALTAP Staff
Posts: 1112
Joined: 08 Dec 2005, 09:13
Location: Novy Bor, Czech Republic
Contact:

Re: drive information with large filesystems are not correct

Post 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!
Petr Solin
ALTAP Staff
ALTAP Staff
Posts: 1112
Joined: 08 Dec 2005, 09:13
Location: Novy Bor, Czech Republic
Contact:

Re: drive information with large filesystems are not correct

Post by Petr Solin »

Fixed. It will be available in final version 2.52.
Post Reply