Patch Name: PHCO_18138 Patch Description: s700_800 11.00 restore(1M) cumulative patch Creation Date: 00/04/17 Post Date: 00/04/20 Hardware Platforms - OS Releases: s700: 11.00 s800: 11.00 Products: N/A Filesets: OS-Core.SYS-ADMIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP Automatic Reboot?: No Status: General Release Critical: No Category Tags: defect_repair general_release Path Name: /hp-ux_patches/s700_800/11.X/PHCO_18138 Symptoms: PHCO_18138: The restore command core dumps when restoring a dump of a file system with a large number of inodes. PHCO_14419: restore(1m) was unable to read some cross-platform dump archives under 10.20 that were readable under previous releases. Defect Description: PHCO_18138: When restoring a dump of a file system with a very large number of inodes, the restore command core dumps while attempting to extract the inode map. The software defect begins to be a problem when the maximum number of inodes for a file system is approximately 4 million, though it does not core dump and may not have any other visible adverse affects. When the maximum number of inodes for a file system reaches approximately 8 million, the command dumps core. Resolution: When extracting the inode map, the code was using the s_spcl.c_addr[] array when reading in blocks of the map. The s_spcl.c_addr[] array has a size of 512. If the map was larger than 512 blocks, restore would write beyond s_spcl.c_addr[512]. The new code defines a new "c_addr" variable which is dynamically allocated for the map extraction. PHCO_14419: An off-by-one error was introduced, at 10.20, into the restore(1m) code which deals with quad-swapping. SR: 8606108655 5003408880 Patch Files: OS-Core.SYS-ADMIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/lbin/fs/hfs/restore /usr/sbin/restore /usr/sbin/rrestore /sbin/restore what(1) Output: OS-Core.SYS-ADMIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/lbin/fs/hfs/restore: $Revision: 80.1.1.5 $ PATCH_11_00: main.o restore.o dirs.o symtab.o tape.o utilities.o hpux_rel.o interactive.o telldi r.o dumprmt.o opendir.o 00/04/17 OS-Core.SYS-ADMIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/sbin/restore: $Revision: 80.1.1.5 $ PATCH_11_00: main.o restore.o dirs.o symtab.o tape.o utilities.o hpux_rel.o interactive.o telldi r.o dumprmt.o opendir.o 00/04/17 OS-Core.SYS-ADMIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /usr/sbin/rrestore: $Revision: 80.1.1.5 $ PATCH_11_00: main.o restore.o dirs.o symtab.o tape.o utilities.o hpux_rel.o interactive.o telldi r.o dumprmt.o opendir.o 00/04/17 OS-Core.SYS-ADMIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /sbin/restore: $Revision: 80.1.1.5 $ $ PATCH/11.00:PHCO_19491 Aug 9 1999 09:51:13 $ PATCH_11_00: main.o restore.o dirs.o symtab.o tape.o utilities.o hpux_rel.o interactive.o telldi r.o dumprmt_sbin.o opendir.o 00/04/17 cksum(1) Output: OS-Core.SYS-ADMIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 2970021812 69632 /usr/lbin/fs/hfs/restore OS-Core.SYS-ADMIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 2970021812 69632 /usr/sbin/restore OS-Core.SYS-ADMIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 2970021812 69632 /usr/sbin/rrestore OS-Core.SYS-ADMIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 2919015372 294912 /sbin/restore Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: PHCO_14419 Equivalent Patches: None Patch Package Size: 380 KBytes Installation Instructions: Please review all instructions and the Hewlett-Packard SupportLine User Guide or your Hewlett-Packard support terms and conditions for precautions, scope of license, restrictions, and, limitation of liability and warranties, before installing this patch. ------------------------------------------------------------ 1. Back up your system before installing a patch. 2. Login as root. 3. Copy the patch to the /tmp directory. 4. Move to the /tmp directory and unshar the patch: cd /tmp sh PHCO_18138 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHCO_18138.depot By default swinstall will archive the original software in /var/adm/sw/save/PHCO_18138. If you do not wish to retain a copy of the original software, use the patch_save_files option: swinstall -x autoreboot=true -x patch_match_target=true \ -x patch_save_files=false -s /tmp/PHCO_18138.depot WARNING: If patch_save_files is false when a patch is installed, the patch cannot be deinstalled. Please be careful when using this feature. For future reference, the contents of the PHCO_18138.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHCO_18138.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_18138.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None