[resolved] XYcopy showing incorrect capacities

Things you’d like to miss in the future...
JLoftus
Posts: 577
Joined: 22 Jan 2014 14:58

[resolved] XYcopy showing incorrect capacities

Post by JLoftus »

I'm seeing something weird transferring files to and from my NAS: The free and total space figures are being reported incorrectly:

In this first image, I'm copying a 113GB file from a 2TB local SSD to my Synology, which is a 35TB volume, with roughly 21TB remaining free space, but what is reported is only 115GB free and 32GB total space:
2022-11-24_17-52-35.png
2022-11-24_17-52-35.png (27.04 KiB) Viewed 636 times
The next image shows the available and total storage in the Synology DSM portal:
2022-11-24_17-54-09.png
2022-11-24_17-54-09.png (16.4 KiB) Viewed 636 times
I'm also seeing the same thing copying FROM the Synology to a 2TB local SSD. Oddly, the total space here is also only reported as 32GB but this is a 2TB drive with 1400GB free:
2022-11-24_18-38-12.png
2022-11-24_18-38-12.png (20.87 KiB) Viewed 631 times
Last edited by JLoftus on 26 Nov 2022 19:24, edited 2 times in total.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: XYcopy showing incorrect free and total space on target drive

Post by admin »

OK, I'll check that TB issue.

What also worries me is the truncated letters in your screenshot. What screen resolution are you using? 125%?

JLoftus
Posts: 577
Joined: 22 Jan 2014 14:58

Re: XYcopy showing incorrect free and total space on target drive

Post by JLoftus »

No, 100% scaling. My resolution is 5120x1440, this is a "super ultrawide" display:
Untitled.png
Untitled.png (15.5 KiB) Viewed 601 times
And here are my font settings:
Untitled.png
Untitled.png (11.81 KiB) Viewed 601 times

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: XYcopy showing incorrect free and total space on target drive

Post by admin »

Ah, 12 point. Beyond the max recommended size of 11.25 point. The layout has no chance with 12 point.

5120x1440 ... wow, extreme cinematic experience.

JLoftus
Posts: 577
Joined: 22 Jan 2014 14:58

Re: XYcopy showing incorrect free and total space on target drive

Post by JLoftus »

I've changed all my point sizes to 11.25 as per your recommendation. Worth noting however, that all font selections are in whole numbers, and many people today (if not most) are using higher resolutions, such that 11.25 is difficult to see, especially for us older folks. Off point from the OP, but this is something I would argue should be prioritized, that is, supporting higher point sizes.

Regardless, the disk space calculations appear to be thrown off by large volume sizes, maybe an overflow issue? I'm surprised even with a modest 2TB disk the total size is still only reported as 32GB.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: XYcopy showing incorrect free and total space on target drive

Post by admin »

I tweaked the interface a bit and could make it work quite okay for 12 point fonts in most parts.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: XYcopy showing incorrect free and total space on target drive

Post by admin »

The recommended way to enlarge text on hi-res screens is to increase the Windows screen resolution, e.g. to 125%. Then the layout will grow with the text.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: XYcopy showing incorrect free and total space on target drive

Post by admin »

JLoftus wrote: 25 Nov 2022 16:49 Regardless, the disk space calculations appear to be thrown off by large volume sizes, maybe an overflow issue? I'm surprised even with a modest 2TB disk the total size is still only reported as 32GB.
1) Is the size shown correctly under "This PC"?
2) echo get("freespace", "E:\"); //replace E by your drive letter

JLoftus
Posts: 577
Joined: 22 Jan 2014 14:58

Re: XYcopy showing incorrect free and total space on target drive

Post by JLoftus »

yes, and yes (XYplorer.exe reporting correctly, but XYcopy.exe is not):
Untitled.png
Untitled.png (12.01 KiB) Viewed 546 times

JLoftus
Posts: 577
Joined: 22 Jan 2014 14:58

Re: XYcopy showing incorrect free and total space on target drive

Post by JLoftus »

The new XYcopy dialog with 12 point font looks good, thanks.

Here's another example of the incorrect disk space calcluation (and thanks to 10gbe, look at that transfer speed!):
Untitled.png
Untitled.png (21.62 KiB) Viewed 540 times

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: XYcopy showing incorrect free and total space on target drive

Post by admin »

That's weird. They are identical functions that return different values in that particular context. Might be some issue with GetDiskFreeSpaceEx API and NAS drives. Currently I don't see anything I could do.

Are the values also wrong in the final dialog when the operation is completed?

JLoftus
Posts: 577
Joined: 22 Jan 2014 14:58

Re: XYcopy showing incorrect free and total space on target drive

Post by JLoftus »

yes, and in fact the problem is worse than I thought.

This is not just happening with NAS volumes, but I just also reproduced the same "32GB" issue on both inter-volume and intra-volume copies that are on local drives only.

I copied from one folder on the D drive to another on the same disk, with erroneous usage and capacity reported, then I copied that same file from one disk to another internal disk, and also am getting the same erroneous 32GB capacity number:
1.png
1.png (24.75 KiB) Viewed 507 times

JLoftus
Posts: 577
Joined: 22 Jan 2014 14:58

Re: XYcopy showing incorrect free and total space on target drive

Post by JLoftus »

I thought it might have something to do with the very large files I was working with, but no, I just also reproduced this on an intra-volume copy with a file that is only 828MB

JLoftus
Posts: 577
Joined: 22 Jan 2014 14:58

Re: XYcopy showing incorrect free and total space on target drive

Post by JLoftus »

Ugh, it's NOT happening with fresh; Without the arduous process of diffing config files changing one line at a time, how I can figure out what setting(s) are causing this?

Here's a fresh; screenshot, showing the correct 34TB of total capacity on the NAS:
1.png
1.png (16.03 KiB) Viewed 504 times

JLoftus
Posts: 577
Joined: 22 Jan 2014 14:58

Re: XYcopy showing incorrect free and total space on target drive

Post by JLoftus »

Well, that was easy. Don, I found it.

In the interest of tweaking every bit of speed, I had unticked the option "Check beforehand whether there is enough space". When I again checked that option, the error goes away. This is definitely some kind of bug. If the option to not check free space is selected, then XYcopy should somehow be aware of this and either hide the capacity string or change it to reflect something like "Free space check has been disabled"

Post Reply