This commit is contained in:
parent
39c561f3dd
commit
c48d6a0505
8
kdump
8
kdump
@ -266,7 +266,13 @@ copy_dump_from_dumpdev ()
|
|||||||
coredir="${KDUMP_SAVEDIR}/`date +"%Y-%m-%d-%H:%M"`"
|
coredir="${KDUMP_SAVEDIR}/`date +"%Y-%m-%d-%H:%M"`"
|
||||||
mkdir -p $coredir
|
mkdir -p $coredir
|
||||||
echo -n "Saving crash dump to $coredir"
|
echo -n "Saving crash dump to $coredir"
|
||||||
dd if=$KDUMP_DUMPDEV of=$coredir/vmcore count=$dumpsize
|
|
||||||
|
BS=1024
|
||||||
|
dd if=$KDUMP_DUMPDEV of=$coredir/vmcore count=$[$dumpsize/$BS] bs=$BS
|
||||||
|
if [ $[$dumpsize % $BS] != 0 ] ; then
|
||||||
|
dd if=$KDUMP_DUMPDEV of=$coredir/vmcore skip=$[$dumpsize/$BS*$BS] \
|
||||||
|
seek=$[$dumpsize/$BS*$BS] count=$[$dumpsize%$BS] bs=1
|
||||||
|
fi
|
||||||
invalidate_dumpdev
|
invalidate_dumpdev
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 12 10:57:38 CET 2007 - bwalle@suse.de
|
||||||
|
|
||||||
|
- fixed copying, blocksize was wrong (#243058)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Feb 10 10:49:31 CET 2007 - schwab@suse.de
|
Sat Feb 10 10:49:31 CET 2007 - schwab@suse.de
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ Requires: %insserv_prereq %fillup_prereq
|
|||||||
Autoreqprov: on
|
Autoreqprov: on
|
||||||
Summary: Tools for fast kernel loading
|
Summary: Tools for fast kernel loading
|
||||||
Version: 1.101
|
Version: 1.101
|
||||||
Release: 73
|
Release: 75
|
||||||
Source: %{name}-%{package_version}.tar.bz2
|
Source: %{name}-%{package_version}.tar.bz2
|
||||||
Source1: kdump
|
Source1: kdump
|
||||||
Source2: sysconfig.kdump
|
Source2: sysconfig.kdump
|
||||||
@ -123,6 +123,8 @@ true # ignore errors
|
|||||||
%{_sbindir}/kdump-helper
|
%{_sbindir}/kdump-helper
|
||||||
|
|
||||||
%changelog -n kexec-tools
|
%changelog -n kexec-tools
|
||||||
|
* Mon Feb 12 2007 - bwalle@suse.de
|
||||||
|
- fixed copying, blocksize was wrong (#243058)
|
||||||
* Sat Feb 10 2007 - schwab@suse.de
|
* Sat Feb 10 2007 - schwab@suse.de
|
||||||
- Fix help string.
|
- Fix help string.
|
||||||
* Fri Feb 09 2007 - bwalle@suse.de
|
* Fri Feb 09 2007 - bwalle@suse.de
|
||||||
|
Loading…
Reference in New Issue
Block a user