From owner-freebsd-bugs@FreeBSD.ORG Fri Apr 29 20:30:03 2005 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D03A16A4CE for ; Fri, 29 Apr 2005 20:30:03 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE51943D58 for ; Fri, 29 Apr 2005 20:30:02 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j3TKU2Mn068105 for ; Fri, 29 Apr 2005 20:30:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j3TKU2SR068104; Fri, 29 Apr 2005 20:30:02 GMT (envelope-from gnats) Resent-Date: Fri, 29 Apr 2005 20:30:02 GMT Resent-Message-Id: <200504292030.j3TKU2SR068104@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Palle Girgensohn Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B230D16A4CE for ; 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 ; 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 ; 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 To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/80468: rc.conf's "dumpdev" does not accept AUTO as documented X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Palle Girgensohn List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2005 20:30:03 -0000 >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: