in reply to can I seek properly on a huge device (/dev/sdaX)

If your perl -v includes uselargefiles=define, you should be safe upto files of 1000 TB (Petabyte?), as perl will use reals to hold the positions and they are accurate upto 53 bits.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."

Replies are listed 'Best First'.
Re^2: can I seek properly on a huge device (/dev/sdaX)
by exodist (Monk) on May 29, 2007 at 22:22 UTC
    Thank you, one question remains: Do I need to navigate to a specific position in small jumps of less than the maximum integer value? or can I put a huge value (greater than size of integer) into the seek() call? Of cource the only situation I can think of that would allow for this would be if I passed a math formula as the seek length, afterall if I passed a variable it would be integer or smaller right?