[9.50] FAT32 message for 4Gb+ files not displayed with custom copy methods

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

[9.50] FAT32 message for 4Gb+ files not displayed with custom copy methods

Post by *Flint »

Tested in 9.50β10 32- and 64-bit.

1. Go to Settings - Copy/Delete, untick the "Use standard copy method" checkbox. (Optionally, you can switch to "Also use big file copy mode".)
2. Try to copy a file >4 Gb to a FAT32 drive.
3. Instead of showing the new message about being unable to copy such large files, TC starts copying, and when 4 Gb is reached, it displayes the gold old "Disk is full".

In standard copy mode the new message is displayed, and copying does not even start, which is the correct behavior.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [9.50] FAT32 message for 4Gb+ files not displayed with custom copy methods

Post by *ghisler(Author) »

This is intentional and will not be changed. Why? There is no reliable way to determine whether a drive supports files >4GB or not. Some Linux network drives report themselves as FAT32, some as NTFS, although they are neither and may or may not support files >4GB. When using the default copy method, CopyFileEx will fail immediately if the file is too big for the file system. This doesn't happen when copying with ReaFile/WriteFile.
Author of Total Commander
https://www.ghisler.com
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Re: [9.50] FAT32 message for 4Gb+ files not displayed with custom copy methods

Post by *Flint »

Why not allocate space first, and copy data later? Then it would fail early.
Actually, I thought TC already did that. Or was it just the CopyFileEx behavior? It's worth adding to other modes, because it also helps to keep fragmentation at lower level when copying many things in parallel.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: [9.50] FAT32 message for 4Gb+ files not displayed with custom copy methods

Post by *Usher »

Maybe add user defined list for drives always using standard copy method?
Andrzej P. Wozniak
Polish subforum moderator
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [9.50] FAT32 message for 4Gb+ files not displayed with custom copy methods

Post by *ghisler(Author) »

Why not allocate space first, and copy data later?
I already do this. But it's not a reliable way to determine that the drive cannot hold the entire file: The user may delete large files while copying the new file.
Maybe add user defined list for drives always using standard copy method?
Just for a changed error message? That would be overkill, sorry.
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Re: [9.50] FAT32 message for 4Gb+ files not displayed with custom copy methods

Post by *DrShark »

ghisler(Author) wrote: 2019-12-29, 07:50 UTCThere is no reliable way to determine whether a drive supports files >4GB or not. Some Linux network drives report themselves as FAT32, some as NTFS, although they are neither and may or may not support files >4GB.
Even if such info is not reliable, at least for "FAT32" drives the dialog with message like "Tagret filesystem detected as FAT32, copying files over 4 Gb may fail. Are you sure to continue? Yes / No"' with ReadFile/WriteFile method will be a time-saver for user.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: [9.50] FAT32 message for 4Gb+ files not displayed with custom copy methods

Post by *Usher »

ghisler(Author) wrote: 2019-12-30, 07:51 UTC
Maybe add user defined list for drives always using standard copy method?
Just for a changed error message? That would be overkill, sorry.
For more flexible drive management. I want to decide for which drive standard copy method is used. Or maybe "standard copy method" is the same as "compatibility mode"?
Andrzej P. Wozniak
Polish subforum moderator
User avatar
Hacker
Moderator
Moderator
Posts: 13064
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: [9.50] FAT32 message for 4Gb+ files not displayed with custom copy methods

Post by *Hacker »

Usher,
"standard copy method" is the same as "compatibility mode"
Yup.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Post Reply