Technical article 126010

Openserver 6.0.0 - cpio fails to create archives of files with large inode numbers.

OpenServer 6.0.0

Written · Last revised

Problem

Consider the following example:
# ls -lai xio.h
182002 -r--r--r--    1 12       300       1222 Mar  1 2004 xio.h
# ls xio.h |cpio -o -O test.cpio
UX:cpio: ERROR: Old format cannot support expanded types on xio.h:
Value too large for defined data type
0 blocks
1 error

The above cpio command will fail similarly when attempting to archive any file with an inode number greater that 65535.

Solution

This is a difference in the default behavior for cpio and has been reported to SCO Engineering.

This problem may be worked around by either of the following:

- Use the traditional OpenServer 5 cpio command. e.g.,

# ls xio.h |/osr5/usr/bin/cpio -o -O test.cpio
3 blocks
OR
- Manually specify an appropriate output format in the
cpio command. e.g.,
# ls xio.h |cpio -oc -O test.cpio
16 blocks

See also

cpio(C)

From the Xinuos technical article database, record 126010. Reproduced with permission. The original is at www.sco.com/ta/126010, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.