From girgen@rambutan.pingpong.net  Fri Apr 29 20:24:26 2005
Return-Path: <girgen@rambutan.pingpong.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B230D16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 29 Apr 2005 20:24:26 +0000 (GMT)
Received: from rambutan.pingpong.net (81.milagro.bahnhof.net [195.178.168.81])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7C7E643D41
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 29 Apr 2005 20:24:25 +0000 (GMT)
	(envelope-from girgen@rambutan.pingpong.net)
Received: from rambutan.pingpong.net (localhost [127.0.0.1])
	by rambutan.pingpong.net (8.13.3/8.13.3) with ESMTP id j3TKOMog027439
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 29 Apr 2005 22:24:22 +0200 (CEST)
	(envelope-from girgen@rambutan.pingpong.net)
Received: (from girgen@localhost)
	by rambutan.pingpong.net (8.13.3/8.13.3/Submit) id j3TKOMQ4027438;
	Fri, 29 Apr 2005 22:24:22 +0200 (CEST)
	(envelope-from girgen)
Message-Id: <200504292024.j3TKOMQ4027438@rambutan.pingpong.net>
Date: Fri, 29 Apr 2005 22:24:22 +0200 (CEST)
From: Palle Girgensohn <girgen@rambutan.pingpong.net>
Reply-To: Palle Girgensohn <girgen@rambutan.pingpong.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: rc.conf's "dumpdev" does not accept AUTO as documented
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         80468
>Category:       conf
>Synopsis:       rc.conf's "dumpdev" does not accept AUTO as documented
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    des
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 29 20:30:02 GMT 2005
>Closed-Date:    Sun Jun 19 17:43:49 GMT 2005
>Last-Modified:  Sun Jun 19 17:43:49 GMT 2005
>Originator:     Palle Girgensohn
>Release:        FreeBSD 5.4-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD rambutan.pingpong.net 5.4-PRERELEASE FreeBSD 5.4-PRERELEASE #1: Fri Feb 25 17:38:53 CET 2005 girgen@rambutan.pingpong.net:/opt/obj/.a/banan/usr/src/sys/WORKSTATION i386


	
>Description:
the man page for rc.conf:

     dumpdev     (str) Indicates the device (usually a swap partition) to
                 which a crash dump should be written in the event of a system
                 crash.  If the value of this variable is ``AUTO'', the first
                 suitable swap device listed in /etc/fstab will be used as
                 dump device.  Otherwise, the value of this variable is passed
                 as the argument to dumpon(8).  To disable crash dumps, set
                 this variable to ``NO''.

but the /etc/rc.d/savecore script will fail if dumpdev="AUTO", since
the code described in the man page seems not to be implemented. I
couldn't get dumpon to work either.
>How-To-Repeat:
set dumpdev="AUTO" in rc.conf
crash the machine and you won't be able to retrieve a crash dump (grr)
>Fix:
Implement the AUTO in savecore (and dumpon?), or change the manual
like this:

Index: rc.conf.5
===================================================================
RCS file: /misc/ncvs/src/share/man/man5/rc.conf.5,v
retrieving revision 1.221.2.11
diff -u -r1.221.2.11 rc.conf.5
--- rc.conf.5   17 Mar 2005 00:04:45 -0000      1.221.2.11
+++ rc.conf.5   29 Apr 2005 20:21:29 -0000
@@ -2487,12 +2487,7 @@
 .Pq Vt str
 Indicates the device (usually a swap partition) to which a crash dump
 should be written in the event of a system crash.
-If the value of this variable is
-.Dq Li AUTO ,
-the first suitable swap device listed in
-.Pa /etc/fstab
-will be used as dump device.
-Otherwise, the value of this variable is passed as the argument to
+The value of this variable is passed as the argument to
 .Xr dumpon 8 .
 To disable crash dumps, set this variable to
 .Dq Li NO .

>Release-Note:
>Audit-Trail:

From: Maxim Konovalov <maxim@macomnet.ru>
To: Palle Girgensohn <girgen@rambutan.pingpong.net>
Cc: des@freebsd.org, bug-followup@freebsd.org
Subject: Re: bin/80468: rc.conf's "dumpdev" does not accept AUTO as documented
Date: Sat, 30 Apr 2005 00:43:03 +0400 (MSD)

 > >Release:        FreeBSD 5.4-PRERELEASE i386
 [...]
 > >Description:
 > the man page for rc.conf:
 >
 >      dumpdev     (str) Indicates the device (usually a swap partition) to
 >                  which a crash dump should be written in the event of a system
 >                  crash.  If the value of this variable is ``AUTO'', the first
 >                  suitable swap device listed in /etc/fstab will be used as
 >                  dump device.  Otherwise, the value of this variable is passed
 >                  as the argument to dumpon(8).  To disable crash dumps, set
 >                  this variable to ``NO''.
 >
 > but the /etc/rc.d/savecore script will fail if dumpdev="AUTO", since
 > the code described in the man page seems not to be implemented. I
 > couldn't get dumpon to work either.
 > >How-To-Repeat:
 > set dumpdev="AUTO" in rc.conf
 > crash the machine and you won't be able to retrieve a crash dump (grr)
 
 This part of man page was accidentally merged from HEAD in rev. 1.221.2.7.
 Perhaps better to MFC etc/rc.d/savecore from HEAD too.
 
 -- 
 Maxim Konovalov
Responsible-Changed-From-To: freebsd-bugs->des 
Responsible-Changed-By: des 
Responsible-Changed-When: Sat Apr 30 13:53:26 GMT 2005 
Responsible-Changed-Why:  
My code. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=80468 
State-Changed-From-To: open->closed 
State-Changed-By: matteo 
State-Changed-When: Sun Jun 19 17:43:07 GMT 2005 
State-Changed-Why:  
fixed by des@ with revision 1.7.2.2 of etc/rc.d/savecore 

http://www.freebsd.org/cgi/query-pr.cgi?pr=80468 
>Unformatted:
