From owner-freebsd-geom@FreeBSD.ORG Thu Sep 16 15:17:15 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F348C16A4CE for ; Thu, 16 Sep 2004 15:17:14 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B7D043D5E for ; Thu, 16 Sep 2004 15:17:14 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id 31BD7AEA55; Sun, 12 Sep 2004 00:08:39 +0200 (CEST) Date: Sun, 12 Sep 2004 00:08:39 +0200 From: Pawel Jakub Dawidek To: George Hartzell Message-ID: <20040911220839.GK30151@darkness.comp.waw.pl> References: <16706.33472.228042.851882@rosebud.alerce.com> <20040911074556.GI30151@darkness.comp.waw.pl> <16707.25008.865268.555842@rosebud.alerce.com> <16707.28763.7201.383177@rosebud.alerce.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="B4AXAQCuM90RQzKo" Content-Disposition: inline In-Reply-To: <16707.28763.7201.383177@rosebud.alerce.com> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 cc: freebsd-geom@FreeBSD.org Subject: Re: Mounting root... X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Sep 2004 15:17:15 -0000 --B4AXAQCuM90RQzKo Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Sep 11, 2004 at 02:38:35PM -0700, George Hartzell wrote: +> George Hartzell writes: +> > [...] +> > Suggestions? +>=20 +> Sorry to follow up my own posting, but I have something that works. +>=20 +> Two changes to /etc/rc.d/swap1 +>=20 +> change stop_cmd from ':' to 'swap1_stop' +>=20 +> and change the line in swap1_stop from +>=20 +> swapctl -U -t blk +>=20 +> to +>=20 +> swapoff -a +>=20 +> And 1 behavioural change. I reflexively use reboot to reboot the +> machine, and hadn't ever made the connection that it doesn't run any +> shutdown scripts. W/ the changes above, and using 'shutdown -r now' +> to reboot the machine, it comes up w/out synching the mirror. +>=20 +> COOL! +>=20 +> To be consistent, one should probably also change the start_cmd to +> swap1_start, and fix that function to use swapon -a since its usage of +> swapctl is also broken. Then, no_swap and swapoff need to be +> defaulted in /etc/defaults/rc.conf. +>=20 +> Or, one could delete the swap1_{start,stop} functions, and just make +> start_cmd be 'swapon -a' and stop_cmd be 'swapoff -a'. +>=20 +> I don't know which is more better, clearly there's some history here +> that's unfinished, or a cross-BSD compatibility thing, or??? +>=20 +> Pawel, should I file some kind of bug here, or should you do +> something, or??? I already changed rc.d/swap1 locally, but before commiting it I want to fix rc.d/addswap as well. Speaking of rc.d/swap1. There is unused code from NetBSD and we don't care about compatibility with their rcNG anymore, so it could be just removed. --=20 Pawel Jakub Dawidek http://www.FreeBSD.org pjd@FreeBSD.org http://garage.freebsd.pl FreeBSD committer Am I Evil? Yes, I Am! --B4AXAQCuM90RQzKo Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBQ3dnForvXbEpPzQRAt3cAKDAuIUnZsHEqVNVE2GHDO9U7GeItQCgqRUG DKoCTWf9mI8ECWdrrrz6Q4c= =t0zU -----END PGP SIGNATURE----- --B4AXAQCuM90RQzKo--