+TAR archiver file size > 4GiB overflow
Moderators: Hacker, petermad, Stefan2, white
+TAR archiver file size > 4GiB overflow
If a file > 4GiB TARed the file size in the TAR file header holds only the part of the file's size <= ULONG_MAX. I guess the file size is stored in a 32 bit unsigned temp variable. The tar header can store up to 36 bit file size.
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Indeed the TAR function doesn't currently support files >4GB. I will try to add it.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
This has been fixed in beta 5, please test it! The problem size is between 4 and 8 GB. For larger files, TC stores the number in binary form.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Hello, Christian.
The problem seems to have been fixed by Total Commander 8.51ß5.
Took tar-file, size 6.32 GB.
Tarred this tar-file a second time, so created a tar-ini-tar archive.
Size of the final tar-file: 6.32 GB (a few K more than the inner file)
If I open the outer tar-file and look at the size of the inner file, it is reported as: 6,787,723,776 bytes.
Environment:
Server 2008 R2 SP1 64-bit
Total Commander 8.51ß5 64-bit
Cheers,
Karl
The problem seems to have been fixed by Total Commander 8.51ß5.
Took tar-file, size 6.32 GB.
Tarred this tar-file a second time, so created a tar-ini-tar archive.
Size of the final tar-file: 6.32 GB (a few K more than the inner file)
If I open the outer tar-file and look at the size of the inner file, it is reported as: 6,787,723,776 bytes.
Environment:
Server 2008 R2 SP1 64-bit
Total Commander 8.51ß5 64-bit
Cheers,
Karl
MX Linux 21.3 64-bit xfce, Total Commander 11.50 64-bit
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
The people of Alderaan keep on bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine.
The Prophet's Song
- ghisler(Author)
- Site Admin
- Posts: 50541
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact: