I have a C application that generates very large binaries, each about 30 GB. After writing each file, it takes some time to calculate the MD5 checksum (after about a couple of minutes per file).
How can I calculate the MD5 checksum of a file as it is being written to disk? I believe that by doing this, I would at least save the extra overhead of reading the file again to calculate the checksum afterwards.
I use the standard C library to execute all IO files, and the OS is Linux.
Can this be done? Thanks!
source share