Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 4 product line. The current stable release is 4.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 160314

Summary: cpio lacks large file support
Product: Red Hat Enterprise Linux 4 Reporter: Steffen Schoenwiese <schoenwiese>
Component: cpioAssignee: Peter Vrabec <pvrabec>
Status: CLOSED DUPLICATE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-06-23 11:04:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Steffen Schoenwiese 2005-06-14 11:51:46 UTC
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 20:46:21 UTC
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 10:33:04 UTC
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 11:04:51 UTC
It's fixed in cpio-2.5-7.EL4.2.

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