From owner-freebsd-bugs@FreeBSD.ORG Mon Oct 10 16:40:15 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org 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 D087616A41F for ; Mon, 10 Oct 2005 16:40:15 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1370043D46 for ; Mon, 10 Oct 2005 16:40:15 +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 j9AGeEcu004298 for ; Mon, 10 Oct 2005 16:40:14 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9AGeELv004297; Mon, 10 Oct 2005 16:40:14 GMT (envelope-from gnats) Resent-Date: Mon, 10 Oct 2005 16:40:14 GMT Resent-Message-Id: <200510101640.j9AGeELv004297@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, David Wolfskill Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 11FC516A41F; Mon, 10 Oct 2005 16:37:50 +0000 (GMT) (envelope-from david@catwhisker.org) Received: from bunrab.catwhisker.org (adsl-63-193-123-122.dsl.snfc21.pacbell.net [63.193.123.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id B046D43D45; Mon, 10 Oct 2005 16:37:49 +0000 (GMT) (envelope-from david@catwhisker.org) Received: from bunrab.catwhisker.org (localhost [127.0.0.1]) by bunrab.catwhisker.org (8.13.3/8.13.3) with ESMTP id j9AGbntJ058768; Mon, 10 Oct 2005 09:37:49 -0700 (PDT) (envelope-from david@bunrab.catwhisker.org) Received: (from david@localhost) by bunrab.catwhisker.org (8.13.3/8.13.1/Submit) id j9AGbnk8058767; Mon, 10 Oct 2005 09:37:49 -0700 (PDT) (envelope-from david) Message-Id: <200510101637.j9AGbnk8058767@bunrab.catwhisker.org> Date: Mon, 10 Oct 2005 09:37:49 -0700 (PDT) From: David Wolfskill To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: yar@FreeBSD.org Subject: bin/87218: Please MFC (to RELENG_5) changes to /etc/rc.subr and /etc/defaults/rc.conf X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: David Wolfskill List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2005 16:40:15 -0000 >Number: 87218 >Category: bin >Synopsis: Please MFC (to RELENG_5) changes to /etc/rc.subr and /etc/defaults/rc.conf >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Oct 10 16:40:14 GMT 2005 >Closed-Date: >Last-Modified: >Originator: David Wolfskill >Release: FreeBSD 5.4-STABLE i386 >Organization: Wolfskill & Dowling Residence >Environment: System: FreeBSD g1-18.catwhisker.org. 5.4-STABLE FreeBSD 5.4-STABLE #622: Mon Oct 10 07:48:53 PDT 2005 root@g1-18.catwhisker.org.:/common/S2/obj/usr/src/sys/LAPTOP_30W i386 >Description: On 24 Aug 2005 16:25:47 +0000 (UTC), Yar Tikhiy committed a change to src/etc/rc.subr (1.37) and src/etc/defaults/rc.conf (1.259) to move the "-M" flag for the mdmfs invocation from the mount_md() function in rc.subr to the tmpmfs_flags and varmfs_flags in defaults/rc.conf. That change was MFCed to RELENG_6 by Yar on 2005-08-28 09:08:06 UTC. I am asking that it also be MFCed to RELENG_5, which suffers from the same problem. (RELENG_4 does not, however, so I am not requesting that.) The incident that catalyzed this PR is documented was described in a message posted to freebsd-stable, and may be found at . >How-To-Repeat: See . And yes, I've tested the fix/MFC under RELENG_5. With the below fix implemented , the machine under test (ref the "uname -a" output above) survived being a CVS server while a CVS client did a "cvs update" on /usr/ports -- while the machine under test was also updating a RELENG_6 /usr/src at the same time. I try to get some use out of a laptop. >Fix: Index: rc.subr =================================================================== RCS file: /cvs/freebsd/src/etc/rc.subr,v retrieving revision 1.31.2.1 diff -u -r1.31.2.1 rc.subr --- rc.subr 17 Jan 2005 11:51:00 -0000 1.31.2.1 +++ rc.subr 10 Oct 2005 16:32:42 -0000 @@ -1294,7 +1294,7 @@ if [ -n "$3" ]; then flags="$3" fi - /sbin/mdmfs $flags -s $1 -M md $2 + /sbin/mdmfs $flags -s $1 md $2 } fi Index: defaults/rc.conf =================================================================== RCS file: /cvs/freebsd/src/etc/defaults/rc.conf,v retrieving revision 1.212.2.19 diff -u -r1.212.2.19 rc.conf --- defaults/rc.conf 25 Sep 2005 19:06:24 -0000 1.212.2.19 +++ defaults/rc.conf 10 Oct 2005 16:33:07 -0000 @@ -44,10 +44,10 @@ removable_interfaces="" # Removable network interfaces for /etc/pccard_ether. tmpmfs="AUTO" # Set to YES to always create an mfs /tmp, NO to never tmpsize="20m" # Size of mfs /tmp if created -tmpmfs_flags="-S" # Extra mdmfs options for the mfs /tmp +tmpmfs_flags="-S -M" # Extra mdmfs options for the mfs /tmp varmfs="AUTO" # Set to YES to always create an mfs /var, NO to never varsize="32m" # Size of mfs /var if created -varmfs_flags="-S" # Extra mount options for the mfs /var +varmfs_flags="-S -M" # Extra mount options for the mfs /var populate_var="AUTO" # Set to YES to always (re)populate /var, NO to never local_startup="/usr/local/etc/rc.d /usr/X11R6/etc/rc.d" # startup script dirs. script_name_sep=" " # Change if your startup scripts' names contain spaces >Release-Note: >Audit-Trail: >Unformatted: