Add the check of maximum file size for FAT/FAT32 drives
Posted: 2007-05-21, 15:11 UTC
The checking of the remained free size on the target drive before copying is a common (and routine) practice. However, there is one problem which not every user is concerned about: the maximum file size due to file system limits. Primarily I mean FAT32, which is widespread on lot of HDDs and flash drives.
By design, the maximum file size limit for FAT32 is 4GB (exactly, 4GiB - 1). The size of ISO image of standard DVD is about 4,7GB. This is not an issue when user has an NTFS volume, but if PC has 2 HDD with NTFS and FAT32 (or, more probable situation, if user inserts the USB flash drive with 8GB or more memory), the attempt to copy such image to FAT32 drive gets an unexpected failure. User has to guess about the real cause of failure...
Currently TC doesn't attempt to check the file system limit before copying (downloading by FTP, extracting from archive etc) the large file. As a result, when the 4GB limit is exceeded, TC shows an error window: "Disk is full!". This message is incorrect itself, because it only informs about the inability to append the current file fragment (the disk, by the way, could have enough free space to tens of such files).
I suggest to check the target file system before the copy (download, extract, append etc) operation and warn user, if the size of current file is larger than maximum size for target.
By design, the maximum file size limit for FAT32 is 4GB (exactly, 4GiB - 1). The size of ISO image of standard DVD is about 4,7GB. This is not an issue when user has an NTFS volume, but if PC has 2 HDD with NTFS and FAT32 (or, more probable situation, if user inserts the USB flash drive with 8GB or more memory), the attempt to copy such image to FAT32 drive gets an unexpected failure. User has to guess about the real cause of failure...
Currently TC doesn't attempt to check the file system limit before copying (downloading by FTP, extracting from archive etc) the large file. As a result, when the 4GB limit is exceeded, TC shows an error window: "Disk is full!". This message is incorrect itself, because it only informs about the inability to append the current file fragment (the disk, by the way, could have enough free space to tens of such files).
I suggest to check the target file system before the copy (download, extract, append etc) operation and warn user, if the size of current file is larger than maximum size for target.