Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Apr 2005 22:24:22 +0200 (CEST)
From:      Palle Girgensohn <girgen@rambutan.pingpong.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/80468: rc.conf's "dumpdev" does not accept AUTO as documented
Message-ID:  <200504292024.j3TKOMQ4027438@rambutan.pingpong.net>
Resent-Message-ID: <200504292030.j3TKU2SR068104@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         80468
>Category:       bin
>Synopsis:       rc.conf's "dumpdev" does not accept AUTO as documented
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 29 20:30:02 GMT 2005
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504292024.j3TKOMQ4027438>