Patch Name: PHCO_18865 Patch Description: s700_800 11.04 (VVOS) fsck_hfs(1M) cumulative patch Creation Date: 99/08/10 Post Date: 99/09/13 Hardware Platforms - OS Releases: s700: 11.04 s800: 11.04 Products: N/A Filesets: OS-Core.UX-CORE,fr=B.11.04,fa=HP-UX_B.11.04_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_18865 Symptoms: PHCO_18865: Ported HP-UX patch PHCO_19091 to VVOS Based on HP-UX patch PHCO_19091: When upgrading from 10.X to 11.00, fsck may fail on hfs file systems with the message: BAD SUPER BLOCK: TRASHED VALUES IN SUPER BLOCK USE -b OPTION TO FSCK TO SPECIFY LOCATION OF AN ALTERNATE SUPER-BLOCK TO SUPPLY NEEDED INFORMATION; SEE fsck(1M). Based on HP-UX patch PHCO_16703: If a file system fragment size is not 1K, and fsck needs to correct the block count for a directory inode, fsck miscalculates the size field for the directory inode. fsck succeeds, however, the kernel will subsequently treat it as a corrupted directory. Defect Description: PHCO_18865: Ported HP-UX patch PHCO_19091 to VVOS Based on HP-UX patch PHCO_19091: The value of fs_csp in the superblock structure of an hfs file system changed from 10.X to 11.00. The value used to be an array of data, but for 11.00, only the first entry in the array is used; the remaining entries have been renamed to fs_unused2. While 11.00 file systems do not used this field, 10.X file systems may have left data in this now unused field. fsck_hfs(1M) does not handle this properly, and treats this data as if the primary superblock of the file system is corrupt, when in fact the file system is fine. Resolution: fsck_hfs(1M) has been updated to properly handle the change in the fs_csp structure in the hfs superblock. Based on HP-UX patch PHCO_16703: When the block count needs to be corrected for a directory inode, fsck_hfs miscalculates the size field of the directory inode on the file system where the fragment size is not 1K bytes. It sets an incorrect large value in the size field of the directory inode. The contents of the directory file are correct but HP-UX kernel detects that the end of the directory entry does not match with the size of the directory file and treats this as a corrupted directory entry. SR: 1653296293 1653277301 Patch Files: OS-Core.UX-CORE,fr=B.11.04,fa=HP-UX_B.11.04_32/64,v=HP: /sbin/fs/hfs/fsck what(1) Output: OS-Core.UX-CORE,fr=B.11.04,fa=HP-UX_B.11.04_32/64,v=HP: /sbin/fs/hfs/fsck: $Revision: Hewlett-Packard ISSL Level vvos_rose42 $ $Header: Hewlett-Packard ISSL Release vvos_r ose $ $Date: Tue Aug 10 17:53:52 EDT 1999 $ $Source: cmd/fsck/fsck.c, hpuxcmdfs, vvos_rose, rose 0008 $ $Date: 99/08/10 13:43:54 $ $Revision: 1.34 PATCH_11.04 (PHCO_18865) $ $Revision: 82.7.1.4 $ VVOS_Supported_Version $Header: Hewlett-Packard ISSL Release vvos_rose $ $Revision: Hewlett-Packard ISSL Level rose0001 $ /usr/src/lib/libc/archive_pa1/libc.a_ID $Date: Aug 10 1999 20:21:05 $ cksum(1) Output: OS-Core.UX-CORE,fr=B.11.04,fa=HP-UX_B.11.04_32/64,v=HP: 119860217 548864 /sbin/fs/hfs/fsck Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: None Equivalent Patches: PHCO_19091: s700: 11.00 s800: 11.00 Patch Package Size: 560 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_18865 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHCO_18865.depot By default swinstall will archive the original software in /var/adm/sw/save/PHCO_18865. 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_18865.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_18865.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHCO_18865.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_18865.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None