Patch Name: PHKL_4628 Patch Description: s700 9.0[357] panic "itrunc1" while truncating sparse file panic "itrunc1" while truncating large sparse file Ported from PHKL_4624 (800/9.04). The panic occurs while comparing the first indirect block of the original inode with the first indirect block of its copy in itrunc(). The check was: for (level = SINGLE; level <= TRIPLE; level++) if (ip->i_ib[level] != oip->i_ib[level]) panic("itrunc1"); The above check is too strict and is causing the bogus panic even though the code works properly. The particular scenario when this panic occurs is when what was once an indirect block equal to 0 in a sparse file becomes a non-zero indirect block after truncation and fails the above check. Added an additional check to make sure that the system does not panic in the above scenario. Path Name: /hp-ux_patches/s700/9.X/PHKL_4628 Effective Date: 940805 Repost: 95/07/20 The patch was modified to allow installation on HP-UX 9.07. OS Release: 9.03 9.05 9.07 Reboot Required: Yes Patch Files: /system/PHKL_4628/new/ufs_inode.o SR#: "what" string/timestamp: ufs_inode.o: ufs_inode.c $Revision: 1.34.61.19 $ $Date: 94/08/04 11:08:12 $ PATCH_9.01 (PHKL_4628) "sum" output: 61964 34 ufs_inode.o Dependencies: None Supersedes: None Patch Package Size: 70 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. Note: Please back up your system before you patch. --------------------------------------------------------------------------- After getting the patch onto your machine, unshar the patch (sh PHKL_4628). To install this patch do the following: 1) Run /etc/update (Note: you must be logged in as root to update a system). 2) Once in the update "Main Menu" move the highlighted line to "Change Source or Destination ->" and press "Return" or "Select Item". 3) Make sure the highlighted item in the "Change Source or Destination" window is "From Tape Device to Local System ...", then press "Return" or "Select Item". 4) You should now be in the "From Tape Device to Local System" window. Change the "Source: /dev/rmt/0m" to "Source: /tmp/PHKL_4628.updt" (this assumes that you are in the /tmp directory where PHKL_4628.updt has been placed). Note: You must enter the complete path name. 5) Press "Done". 6) From here on follow the standard directions for update. The customized script that update runs will move the original software to /system/PHKL_4628/orig. HP recommends keeping this software there in order to recover from any potential problems. It is also recommended that you move the PHKL_4628.text file to /system/PHKL_4628 to be retained for future reference. If you wish to put this patch on a magnetic tape and update from the tape drive, dd a copy of the patch to the tape drive. As an example the following will create a copy of the patch that update can read: dd if=PHKL_4628.updt of=/dev/rmt/0m bs=2048