documentation/4608: cpio documentation change regarding filesize limits

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

documentation/4608: cpio documentation change regarding filesize limits

Peter J. Philipp
>Number:         4608
>Category:       documentation
>Synopsis:       file sizes in cpio are limited to 4294967295 bytes.
>Confidential:   yes
>Severity:       non-critical
>Priority:       low
>Responsible:    bugs
>State:          open
>Quarter:        
>Keywords:      
>Date-Required:
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 08 14:20:01 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Peter Philipp
>Release:        
>Organization:
net
>Environment:
       
        System      : OpenBSD 3.8
        Architecture: OpenBSD.amd64
        Machine     : amd64
>Description:
        While doing a backup cpio found a very large file for me that was
previously unnoticed.  I thought it was a good idea to mention in the
manpage that filesizes are limited to 4294967295 bytes (0xFFFFFFFF or full 32 bits).

# cpio -oz -C 16384 < triton.list | ssh pbug@10.0.0.4 dd of=triton.cpio.gz bs=
pbug@10.0.0.4's password:
cpio: File is too large for sv4cpio format triton/var/log/lastlog
95372+2 records in
95372+2 records out
1562580524 bytes transferred in 7119.710 secs (219472 bytes/sec)
# ls -l triton/var/log/lastlog
-rw-r--r--  1 root  wheel  1043192873228 Nov  6 03:29 triton/var/log/lastlog

(The large lastlog was a misconfiguration error on my end so it can be ignored)

>How-To-Repeat:
       
>Fix:
Index: cpio.1
===================================================================
RCS file: /cvs/src/bin/pax/cpio.1,v
retrieving revision 1.20
diff -u -r1.20 cpio.1
--- cpio.1      21 Nov 2003 20:54:02 -0000      1.20
+++ cpio.1      8 Nov 2005 14:01:54 -0000
@@ -288,3 +288,5 @@
 and
 .Fl S
 options are currently not implemented.
+.Pp
+With the sv4cpio format filesizes are limited to 4294967295 bytes.


>Release-Note:
>Audit-Trail:
>Unformatted: