The problem is that the cpio output file has exactly the same size if cpio is built with or without largefile. The only difference is the error message is present or not.

# ls -l
total 4701804
-rw-r--r--    1 root     root     2404679680 avr 18 15:13 bigfile.tar
-rw-r--r--    1 root     root       556018 avr 18 15:04 cpio-2.6.tar.gz
-rw-r--r--    1 root     root     2404689920 avr 18 18:05 largefile.tar
# cat biglist
bigfile.tar
cpio-2.6.tar.gz
largefile.tar
#

1st cas : with --disable-largefile :
-----------------------------------------
# /usr/local/bin/cpio -ov <biglist >big.cpio
/usr/local/bin/cpio: bigfile.tar: Value too large for defined data type
cpio-2.6.tar.gz
/usr/local/bin/cpio: largefile.tar: Value too large for defined data type
1087 blocks
# ls -l big.cpio
-rw-r--r--    1 root     root       556544 avr 20 16:52 big.cpio
#

2nd case : without --disable-largefile or with --enable-largefile :
-----------------------------------------------------------------------------------
# /usr/local/bin/cpio -ov <biglist >big.cpio
bigfile.tar
cpio-2.6.tar.gz
largefile.tar
1087 blocks
# ls -l big.cpio
-rw-r--r--    1 root     root       556544 avr 20 16:57 big.cpio
#

Best regards,
amlor

From: Sergey Poznyakoff <[EMAIL PROTECTED]>
To: "PinkFloyd Fan" <[EMAIL PROTECTED]>
CC: [email protected]
Subject: Re: [Bug-cpio] Problem with large file
Date: Wed, 20 Apr 2005 15:42:35 +0300

PinkFloyd Fan <[EMAIL PROTECTED]> wrote:

> If I configure cpio for the large file (./configure --enable-largefile
> ou ./configure), no message occurs but the larges files ar not
> backuped :
>
> # /usr/local/bin/cpio -ov <biglist >big.cpio
> bigfile.tar
> cpio-2.6.tar.gz
> largefile.tar
> 1087 blocks

What exactly do you mean? The output indicates that `largefile.tar' was
processed.

Regards,
Sergey

_________________________________________________________________ MSN Messenger : vid�oconf�rence gratuite http://g.msn.fr/FR1001/866



_______________________________________________
Bug-cpio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-cpio

Reply via email to