Can cp copy files which are greater than 4GB ?

Eric Sandeen sandeen at redhat.com
Tue Dec 29 18:49:35 UTC 2009


Mark Ryden wrote:
> Well,
>   In the mean time I tried it and it failed; probably
> coreutils I am using was build without this
> flag. (coreutils-7.2-4.fc11.i586).
> 
> I will try to build coreutils with this flag and then perform that cp.

I'd be very surprised if it's not bulit that way already.

Can you strace the failing cp and see how/why it's failing?

-Eric

> Rgs,
> Mark
> 
> On Tue, Dec 29, 2009 at 6:12 PM,  <tytso at mit.edu> wrote:
>> On Tue, Dec 29, 2009 at 04:32:32PM +0200, Mark Ryden wrote:
>>> Hello,
>>> Can "cp" under ext3 partition copy files which are greater than 4GB ?
>>> (the source file and the destination are on the same ext3 partition, and there
>>> is of course enough space)
>>> Is there a limit on the size of a file which can be copied thus ?
>> It should, as long as /bin/cp is compiled with O_LARGEFILE support.
>>
>>                                         - Ted
>>
> 
> _______________________________________________
> Ext3-users mailing list
> Ext3-users at redhat.com
> https://www.redhat.com/mailman/listinfo/ext3-users




More information about the Ext3-users mailing list