Network drive free space incorrect when using junctions

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
wanderer
Power Member
Power Member
Posts: 1644
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Network drive free space incorrect when using junctions

Post by *wanderer »

Imagine this scenario:

In a PC named PC1, C: contains a junction "Folder1" to D:\Folder1. Perform the following actions in a TC instance under PC1.

- Go to C:\, you see the total free space of C: in the drivebar.

- Go to C:\Folder1, you see the total free space of D: in the drivebar.

- Go to \\PC1\C$, you see the total free space of C: in the drivebar.

- Go to \\PC1\C$\Folder1, you still see the total free space of C: in the drivebar while you should see D:.


I could consider this a bug but i don't know if it's technically possible to change this behavior. It would be nice if it could be done though. Christian, any comments?
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50931
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Total Commander is calling the disk free function with the full UNC path. It seems that Windows cannot determine the partition to which the link points.
Author of Total Commander
https://www.ghisler.com
User avatar
wanderer
Power Member
Power Member
Posts: 1644
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Post by *wanderer »

ghisler(Author) wrote:Total Commander is calling the disk free function with the full UNC path. It seems that Windows cannot determine the partition to which the link points.
Argh..... I was afraid of such a thing. Anyway, thanks for the info.

No workarounds (like a DiskFreeEx function), right?
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50931
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

No, I'm not aware of any - TC is already calling GetDiskFreeSpaceEx.
Author of Total Commander
https://www.ghisler.com
User avatar
wanderer
Power Member
Power Member
Posts: 1644
Joined: 2003-03-28, 14:35 UTC
Location: Sol

Post by *wanderer »

:( Too bad. Anyway, thanks...
- Wanderer -

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Normally using latest TC on:
x32: WinXPx32 SP3 (very rarely nowadays).
x64: Clients/Servers - Win10/Win11 and Win2K16 to Win2K22, mainly Win10 though.
Post Reply