Hi,

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.

This is on Slackware 10.1.0 using:  This is perl, v5.8.6 built for i486-linux

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.

Before the file is already there and will be overwritten (I've tried deleting 
it before copy):
        Filesystem           1K-blocks      Used Available Use% Mounted on
        /dev/rd/0               253871    121344    132527  48% /Dir/dbm

After:
        Filesystem           1K-blocks      Used Available Use% Mounted on
        /dev/rd/0               253871    253870         1 100% /Dir/dbm

It copies this:

        499661824 2007-06-07 11:30 file.pag

When it is fine it looks like this in the destination:

        499661824 /Dir/dbm/file.pag

Otherwise like this when disk is full:

        173121536 /Dir/dbm/file.pag

As you see, the file is not copied in its entirety but the file system is full 
...

In the meantime I'll use system(cp) but I'm curious.

I've tried changing buffer size, binmode and anything else I could tinker with 
but I always have the file system filling up when reading and writing using 
Perl or File::Copy

Cheers,

Jerry 







-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to