Jump to content
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
HP.com home

Transition Impacts

Tru64 UNIX Software Transition Kit


» HP STK home
» Home
» Overview
» Tools
» Documentation
» Transition impacts
» Identifier types
» Impact list
» Porting to HP-UX
» Glossary
» Help
» Send us feedback
Site maps
» Tru64 UNIX STK
Content starts here

non-critical impact:

cpio utility - option differences; temporarily available (NcWn244)

CMD Impacts ME Impacts

Problem description

The cpio archiving utility on Tru64 UNIX has some options that are not present in cpio on HP-UX. In addition, some options are different, but exhibit the same behavior. Also, some options are the same, but exhibit different behavior. This utility is available on a temporary basis in the Tru64 UNIX Migration Environment for HP-UX.

On Tru64 UNIX, the -C value option performs block input/output using value as the record size.The C and B options are mutually exclusive. If you specify both, the last one on the command line is used.

On HP-UX, the -C option directs cpio to checkpoint itself at the start of each volume. If cpio is writing to a streaming tape drive with immediate-report mode enabled and a write error occurs, it normally aborts and exits with return code 2. With this option specified, cpio instead automatically restarts itself from the checkpoint and rewrites the current volume. Alternatively, if cpio is not writing to such a device and a write error occurs, cpio normally continues with the next volume. With this option specified, however, the user can choose to either ignore the error or rewrite the current volume.

On Tru64 UNIX, the -e option reads or writes cpio header information in extended cpio header format. Use this option to read or write block special or character special files. Any cpio archives created with the e option of Tru64 UNIX Version 4.0 are not backward compatible with earlier versions of Tru64 UNIX.

On HP-UX, the -e extarg option specifies the handling of any extent attributes of the file(s) to be archived or copied. The extarg argument can have the following values:

Archive or copy the file and issue a warning message if extent attributes cannot be preserved.
Do not issue a warning message even if extent attributes cannot be preserved.
Any file(s) with extent attributes will not be archived and a warning message will be issued.

When you use the -o option, extent attributes are not preserved in the archive. Furthermore, the -p option will not preserve extent attributes if the files are being copied to a file system that does not support extent attributes. If -e is not specified, the default value for extarg is warn.

On Tru64 UNIX, the -x option is not available. You can use the e option as a replacement. On HP-UX, the -x option saves or restores device special files. Because mknod() is used to recreate these files on a restore, -ix and -px can be used only by users with appropriate privileges (see mknod(2)). This option is intended for intrasystem (backup) use only. Restoring device files from previous versions of the operating system, or from different systems can be very dangerous. The cpio utility might prevent the restoration of certain device files from the archive.

The following Tru64 UNIX options are not in HP-UX:

-C value

Performs block input/output using value as the record size. The C and B options are mutually exclusive. If you specify both, the last one on the command line is used.

-M string

Specifies the End-of-Media message. Use this option to customize the message that appears when it is time to change archive volumes. The -M option is valid only when you specify -I or -O.


Positions the tape after the EOF marker on extraction or listing. The z option lets the user extract or list tapes that have multiple archives on them one after the other without error as a result of the tape not being positioned correctly for the next extraction or listing.

The Migration Environment contains Tru64 UNIX Application Programming Interfaces (APIs), development tools, and commands and utilities to assist customers in migrating their applications from Tru64 UNIX to HP-UX.


UNIX Commandscpio              

See also

Solution description

The cpio utility is in the Tru64 UNIX Migration Environment for HP-UX.

Applications and users can use this utility from the Tru64 UNIX Migration Environment for HP-UX. See the cpio(1) manpage in the Migration Environment for more information. Please note that the Migration Environment is temporary.

Review the manpages and your scripts to determine if they are affected by these differences.

See also

Problem summary

classifications source types OS release severity type
CMD, ME Make, Script any HP-UX 11i version non-critical warning
Printable version
Privacy statement Using this site means you accept its terms Feedback to DSPP
© 2007 Hewlett-Packard Development Company, L.P.