* Tom Phoenix <[EMAIL PROTECTED]> [2007-06-07 21:09]:
> On 6/7/07, Perl WANNABE <[EMAIL PROTECTED]> wrote:
>
> >I'm trying to copy a couple of DBM files from a disk to a RAM disk,
> >one of the files is 500M the other quite small.
>
> Some DBM implementations, if the filesystem supports doing so, will
> create files with "holes" in them; that is, the file may have
> arbitrarily long gaps in which there's no data. You can even have a
> file that seems larger than the disk it's stored upon.
>
> >Whether I use File::Copy or I roll my own copy by reading and writing the
> >file the filesystem fills up... If I use system (cp from to) I don't have a
> >problem.
>
> It sounds as if your cp knows how to handle the holes, but File::Copy
> isn't so smart. It may be worth filing a bug report over this; even if
> File::Copy isn't fixed, its documentation should mention this.
>
> Cheers!
>
> --Tom Phoenix
> Stonehenge Perl Training
Thanks Tom and Chas...
du -sh user.rewrites.*
37M file.pag
ls -l file.pag
-rw-r--r-- 1 root root 499661824 2007-06-08 10:40 file.pag
I can't believe it.. Sometimes the answer is in front of your nose and you
don't see it. I'm trying to copy a 500M file into a 248MB Ram disk and I didn't
see it because when I used 'cp' it worked.
If nobody does it before then, I'll fill in a bug report this weekend!
Thanks again, especially for the pragmatic reply from Chas Owens!!!!!
Great weekend everyone!
--
_ Jerry Rocteur
_|_|_ Systems Operations & Engineering
(0 0)
ooO--(_)--Ooo
___________________________________________________
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/