 |
≫ |
|
|
 |
パッチ名: PHCO_35999
パッチ摘要: s700_800 11.11 split(1)累積パッチ
作成日: 07/04/10
公開日: 07/04/30
ハードウェアプラットフォームおよびOSリリース:
s700: 11.11
s800: 11.11
現象:
PHCO_35999:
(SR:8606441107 CR:JAGaf98864)
ファイルシステムが満杯になり、ファイルの作成に必要なスペースがなくなっ
ても、split(1)が終了値"0"を返します。
問題点の説明:
PHCO_35999:
(SR:8606441107 CR:JAGaf98864)
ファイルシステムが満杯になり、ファイルの作成に必要なスペースがなくなっ
たら、-lオプション付きのsplit(1)は0以外の終了値を返さなければなりませ
ん。ところが、終了値"0"が返されていました。
問題の再現手順:
# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 56328192 3954056 51964984 7% /
/dev/vg00/lvol1 1014648 42808 870368 5% /sta
nd
/dev/vg77/scrap 3506433 9227 3146562 0% /tms
/vts
/dev/vg77/splittest
7893 7870 0 100% /tmp
/lvtest
#pwd
/tmp/lvtest
# split -l 10000 test3 out3
/tmp/lvtest: write failed, file system is full
/tmp/lvtest: write failed, file system is full
/tmp/lvtest: write failed, file system is full
/tmp/lvtest: write failed, file system is full
out3aa: No space left on device
# echo $?
0
#
この場合、split(1)は、終了値"0"ではなく終了値"1"を返すべきです。
解決方法:
正しい終了値を返すようにsplit(1)を修正しました。
-----------------------------------------------------------------------------
Patch Name: PHCO_35999
Patch Description: s700_800 11.11 split(1) cumulative patch
Creation Date: 07/04/10
Post Date: 07/04/30
Hardware Platforms - OS Releases:
s700: 11.11
s800: 11.11
Products: N/A
Filesets:
OS-Core.CAUX-ENG-A-MAN,fr=B.11.11,fa=HP-UX_B.11.11_32/64,v=HP
OS-Core.CMDS-AUX,fr=B.11.11,fa=HP-UX_B.11.11_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_35999
Symptoms:
PHCO_35999:
( SR:8606441107 CR:JAGaf98864 )
split(1) returns zero exit value, when the
filesystem becomes full and there is no space
available for further file creation.
Defect Description:
PHCO_35999:
( SR:8606441107 CR:JAGaf98864 )
When split(1) is called with the option -l, split(1)
should return non-zero exit value when the filesystem
becomes full and there is no space available
for further file creation. But it returns zero.
The problem can be reproduce as:
# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 56328192 3954056 51964984 7% /
/dev/vg00/lvol1 1014648 42808 870368 5% /sta
nd
/dev/vg77/scrap 3506433 9227 3146562 0% /tms
/vts
/dev/vg77/splittest
7893 7870 0 100% /tmp
/lvtest
#pwd
/tmp/lvtest
# split -l 10000 test3 out3
/tmp/lvtest: write failed, file system is full
/tmp/lvtest: write failed, file system is full
/tmp/lvtest: write failed, file system is full
/tmp/lvtest: write failed, file system is full
out3aa: No space left on device
# echo $?
0
#
In this case, split(1) should return exit value
one, instead of value zero.
Resolution:
split(1) has been fixed to return correct exit value.
Enhancement:
No
SR:
8606441107
Patch Files:
OS-Core.CAUX-ENG-A-MAN,fr=B.11.11,fa=HP-UX_B.11.11_32/64,
v=HP:
/usr/share/man/man1.Z/split.1
OS-Core.CMDS-AUX,fr=B.11.11,fa=HP-UX_B.11.11_32/64,v=HP:
/usr/bin/split
what(1) Output:
OS-Core.CAUX-ENG-A-MAN,fr=B.11.11,fa=HP-UX_B.11.11_32/64,
v=HP:
/usr/share/man/man1.Z/split.1:
None
OS-Core.CMDS-AUX,fr=B.11.11,fa=HP-UX_B.11.11_32/64,v=HP:
/usr/bin/split:
split.c $Date: 2007/02/24 20:11:23 $Revision: r11.11
/1 PATCH_11.11 (PHCO_35999)
$Revision: @(#) split R11.11_BL2007_0410_2 PATCH_11.
11 PHCO_35999
cksum(1) Output:
OS-Core.CAUX-ENG-A-MAN,fr=B.11.11,fa=HP-UX_B.11.11_32/64,
v=HP:
1752514971 2095 /usr/share/man/man1.Z/split.1
OS-Core.CMDS-AUX,fr=B.11.11,fa=HP-UX_B.11.11_32/64,v=HP:
1071604929 16384 /usr/bin/split
Patch Conflicts: None
Patch Dependencies: None
Hardware Dependencies: None
Other Dependencies: None
Supersedes: None
Equivalent Patches: None
Patch Package Size: 40 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_35999
5. Run swinstall to install the patch:
swinstall -x autoreboot=true -x patch_match_target=true \
-s /tmp/PHCO_35999.depot
By default swinstall will archive the original software in
/var/adm/sw/save/PHCO_35999. If you do not wish to retain a
copy of the original software, include the patch_save_files
option in the swinstall command above:
-x patch_save_files=false
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_35999.text file is
available in the product readme:
swlist -l product -a readme -d @ /tmp/PHCO_35999.depot
To put this patch on a magnetic tape and install from the
tape drive, use the command:
dd if=/tmp/PHCO_35999.depot of=/dev/rmt/0m bs=2k
Special Installation Instructions: None
|