Patch Name: PHCO_19623 Patch Description: s700_800 11.00 mount_hfs(1M) cumulative patch Creation Date: 99/08/26 Post Date: 99/10/06 Hardware Platforms - OS Releases: s700: 11.00 s800: 11.00 Products: N/A Filesets: OS-Core.UX-CORE,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_19623 Symptoms: PHCO_19623: Recompile needed due to enhanced libc routine. PHCO_16581: mount_hfs(1M) returns an error when quotactl() fails, even though the quotactl() failure only gives a warning. Defect Description: PHCO_19623: Enhancements were made to libc routines to support VxFS version 4. Therefore, mount_hfs needs to be recompiled, since it calls one of the libc routines that changed. For full support for multiple VxFS versions, the following patches are required. PHCO_18462 diskusg_vxfs PHCO_18463 fscat PHCO_18464 getext PHCO_18465 setext PHCO_18466 vxdump PHCO_18467 vxrestore PHCO_18468 vxupgrade PHCO_18470 df PHCO_18471 fstyp PHCO_18472 fs_wrapper PHCO_18473 mount_wrapper PHCO_19491 libc PHCO_19623 mount_hfs PHCO_19624 mount_cdfs PHCO_19631 lvchange PHCO_19656 mkboot PHCO_19673 fsck_hfs Resolution: This is a recompile only. The mount_hfs code calls a libc routine that changed to support VxFS version 4, so it needs to be recompiled with the newer libc. PHCO_16581: For "mount -F hfs -o quota", if quotactl() fails, an error code is passed back to generic mount(1M). It should not return an error since a quotactl() failure only produces a warning. Resolution: When using "-o quota", if quotactl() fails in mount_hfs(1M), it now returns a 0, rather than an error code. This is consistent with the behavior of mount_jfs(1M). Looking at this patch stand-alone, the impact is simply that the return code is different. However, the impetus for this change was to cooperate with changes to the generic mount command involving /etc/mnttab access (see PHCO_16582). If the user has THIS mount_hfs patch and NOT the generic mount patch, there are no adverse effects. They simply get the 0 return code when quotactl() fails, and the new entry is correctly added to /etc/mnttab. If the user has the generic mount patch and NOT THIS mount_hfs patch, then if quotactl() fails in mount_hfs, it returns an error code and, more importantly, the new entry will NOT get added to /etc/mnttab, even though the file system did get mounted; this is undesirable. This is not likely to cause a critical situation for the user, especially since syncer will eventually come along (the default is every 30 seconds) and update /etc/mnttab correctly if it is out of sync with the kernel mount table. However, there will be a relatively small window where /etc/mnttab will not accurately reflect what is mounted; the newly mounted file system will not be there. Again, note that this only affects when "-o quota" is used and the quotactl() fails. SR: 4701427328 1653290346 Patch Files: OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /sbin/fs/hfs/mount what(1) Output: OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: /sbin/fs/hfs/mount: $Revision: 82.1.1.1 $ $ PATCH/11.00:PHCO_19491 Aug 9 1999 09:51:13 $ PATCH_11_00: mount.o 99/08/26 cksum(1) Output: OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP: 274330434 233472 /sbin/fs/hfs/mount Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: PHCO_16581 Equivalent Patches: PHCO_17226: s700: 10.20 s800: 10.20 Patch Package Size: 250 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_19623 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHCO_19623.depot By default swinstall will archive the original software in /var/adm/sw/save/PHCO_19623. 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_19623.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_19623.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHCO_19623.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_19623.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None