#include #include #include // #define NUMBER 0x100000000 // 2^32 copies without md5 detected error, file legnth 4294967296 // #define NUMBER 0x400000000 // 4*2^32 cpoies are erroneous from md5sum, file legnth 17179869184 //#define NUMBER 0x200000000 // 2*2^32 cpoies are erroneous from md5sum, file legnth 8589934592 //#define NUMBER 0x100000001 // 2^32+1 copies without md5 detected error, file legnth 4294967297 //#define NUMBER 0x180000000 // copies without md5 detected error, file legnth 6442450944 #define NUMBER 0x1FFFFFFFF // copies without md5 detected error,file legnth 8589934591 /* There appears to be a problem copying file larger than 0x1FFFFFFFF on this machine hardware: ASROCK B550 Steel Legend motherboard, most recent bois as of 04/27/2022 6 core Rtzen Processor OS: Ubuntu 22.04 (pre-release?) as of 04/27/2022 Context: Unable to download a very large file with expected MD5 sum on this computer. Had same issue with Manjaro on the same computer. Had no problems downloading the large file with the correct md5 checksum on an old raspberry pi with an external hard drive. The file legnth was foun from the command: ls -l bigfile The file was copied was copied with: cp bigfile bigfile2 The copy was checked by using an md5sum check, if the checksums are different, the copy is bad md5sum bigfile md5sum bigfile2 bigfile and bigfile2 were deleted before the next run */ int main() { FILE * fp; uint32_t rand; uint64_t count; fp= fopen ("bigfile","w+"); for (count=0;count