This service will be undergoing maintenance at 00:00 UTC, 2016-09-28. It is expected to last about 1 hours
Bug 160314 - cpio lacks large file support
cpio lacks large file support
Status: CLOSED DUPLICATE of bug 154507
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: cpio (Show other bugs)
4.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Peter Vrabec
Brock Organ
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-06-14 07:51 EDT by Steffen Schoenwiese
Modified: 2007-11-30 17:07 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-06-23 07:04:51 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Steffen Schoenwiese 2005-06-14 07:51:46 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 SUSE/1.0.4-1.1

Description of problem:
cpio lacks support for files larger than 2 GB:

[root@em2:test]$dd if=/dev/zero of=large_file bs=1024 count=2100000
[root@em2:test]$ls -lah
total 2.1G
drwxr-xr-x  2 root root 4.0K Jun 14 13:58 .
drwxrwxrwt  7 root root 4.0K Jun 14 13:55 ..
-rw-r--r--  1 root root 2.1G Jun 14 13:33 large_file

[root@em2:test]$ls | cpio -ov > test.cpio
cpio: large_file: Value too large for defined data type
cpio: test.cpio: truncating inode number
test.cpio
1 block

[root@em2:test]$ls -lah
total 2.1G
drwxr-xr-x  2 root root 4.0K Jun 14 13:58 .
drwxrwxrwt  7 root root 4.0K Jun 14 13:55 ..
-rw-r--r--  1 root root 2.1G Jun 14 13:33 large_file
-rw-r--r--  1 root root  512 Jun 14 13:58 test.cpio


Version-Release number of selected component (if applicable):
cpio-2.5-7.EL4.1

How reproducible:
Always

Steps to Reproduce:
1. create a large file (dd if=/dev/zero of=large_file bs=1024 count=2100000)
2. do ls | cpio -ov > test.cpio

  

Actual Results:  cpio shows an error message and the resulting file is way too small

Expected Results:  No error and a complete cpio-file

Additional info:
Comment 1 Jussi Silvennoinen 2005-06-20 16:46:21 EDT
I think you're testing with cpio-2.5-7, this was fixed in cpio-2.5-7.EL4.1 and I
can run those commands just fine without problems.
Comment 2 Steffen Schoenwiese 2005-06-21 06:33:04 EDT
Well, "rpm -q -f /bin/cpio" says, it belongs to cpio-2.5-7.EL4.1, which should
be the fixed one. But the problem remains, just checked it again.
Comment 3 Peter Vrabec 2005-06-23 07:04:51 EDT
It's fixed in cpio-2.5-7.EL4.2.

*** This bug has been marked as a duplicate of 154507 ***

Note You need to log in before you can comment on or make changes to this bug.