remove multi dump [v2]

remove multi dump

Resolves: bz816859

multi dump was not written as a failsafe dump. Also it was not really tested.
It introduced more complexity in the early phase of porting plenty of rhel6
functions, so we'd remove it and concentrate on the base functionalities.

[v1->v2]: vivek: better error message

Signed-off-by: Dave Young <dyoung@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
This commit is contained in:
Dave Young 2012-04-28 15:17:13 +08:00
parent 4b48dbb442
commit b71fc17869
2 changed files with 8 additions and 6 deletions

View File

@ -26,12 +26,7 @@ do_default_action()
add_dump_code()
{
if [ -z "$DUMP_INSTRUCTION" ]
then
DUMP_INSTRUCTION="$1"
else
DUMP_INSTRUCTION="$DUMP_INSTRUCTION && $1"
fi
DUMP_INSTRUCTION="$1"
}
get_mp()

View File

@ -283,6 +283,13 @@ function status()
function start()
{
local nr
nr=$(awk 'BEGIN{cnt=0} /^raw|^net|^ext[234]|^xfs|^btrfs|^minix/{cnt++} END{print cnt}' $KDUMP_CONFIG_FILE)
[ $nr -gt 1 ] && {
echo -n "Error: More than one dump targets specified"; echo
return 1
}
#TODO check raw partition for core dump image
status
rc=$?