untrunc
untrunc copied to clipboard
2Gb limit on 32 bit system?
Hi, I have problem with large files recovery. When I attempt restore File: videorecorder.3gp Size: 2459828224 Blocks: 4809043 IO Block: 4096 regular file with strace untrunc 25/good.3gp videorecorder.3gp I have "Could not open file: videorecorder.3gp" error It is from trace output: openat(AT_FDCWD, "videorecorder.3gp", O_RDONLY) = -1 EOVERFLOW (Value too large for defined data type) Is it problem is i386 specific or may be solved compiiation on amd64 mode?
I made some commits recently which try to better support >2GB files. See here and let me know if it works.
I just add -D_FILE_OFFSET_BITS=64 option.