Skip to content

Does not work with large files (>2GB) #1

@oysteinkrog

Description

@oysteinkrog

When trying to recover large files the following error appears:

open/proc/1575/fd/6: Value too large for defined data type

Here is a simple modification of test5 to illustrate (creates 4GB empty file.. breaks test otherwise):

diff --git a/run_tests b/run_tests
index 0436191..09ad088 100755
--- a/run_tests
+++ b/run_tests
@@ -109,7 +109,8 @@ test5()
{
local tmp
tmpfile=mktemp

  •   echo "blabla" > "$tmpfile"
    
  •   dd if=/dev/zero of="$tmpfile" bs=1 count=0 seek=4G
    exec 6<> "$tmpfile" # open $tmpfile, assign to fd 6
    add_on_exit rm -f "$tmpfile"
    rm -f "$tmpfile"
    

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions