Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
oysteinkrog opened this issue Jul 19, 2011 · 0 comments
Open

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

oysteinkrog opened this issue Jul 19, 2011 · 0 comments
Assignees

Comments

@oysteinkrog
Copy link

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"
    
@ghost ghost assigned pkt Jul 19, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants