untrunc icon indicating copy to clipboard operation
untrunc copied to clipboard

2Gb limit on 32 bit system?

Open Loh1917 opened this issue 6 years ago • 2 comments

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?

Loh1917 avatar Sep 27 '18 10:09 Loh1917

I made some commits recently which try to better support >2GB files. See here and let me know if it works.

anthwlock avatar Sep 27 '18 17:09 anthwlock

I just add -D_FILE_OFFSET_BITS=64 option.

Loh1917 avatar Sep 27 '18 18:09 Loh1917