Re: Call for regression and performance testing - 8.0

From: Kostik Belousov <kostikbel_at_gmail.com>
Date: Tue, 22 Sep 2009 13:58:18 +0300
On Tue, Sep 22, 2009 at 11:21:48AM +0100, Robert N. M. Watson wrote:
> 
> On 13 Aug 2009, at 06:59, Mel Flynn wrote:
> 
> >On Wednesday 12 August 2009 04:29:35 Robert Watson wrote:
> >
> >>We actually have a sizable regression test suite in src/tools/ 
> >>regression --
> >>some of these tools will have broken as a result of 8-CURRENT  
> >>development,
> >>so the first task may be to fix them.  The next is to run them on 7- 
> >>STABLE
> >>and 8-CURRENT and decide if things have gotten worse -- or maybe we  
> >>have a
> >>bug to fix in both.  Pick the tool of your choice, and give it a  
> >>spin.
> >>More than one person per tool is fine, because that way we get more  
> >>diverse
> >>testing.
> >
> >Well, there's one regression that prevents me from testing a  
> >regression. In
> >gmirror(8) and still on 8.x it is described how to do kernel dumps  
> >on a
> >gmirror, using /etc/rc.early. Yet, /etc/rc.d/early.sh has been  
> >removed and a
> >grep for early in the /etc tree, has not shown me that there's a  
> >replacement
> >in place.
> 
> Catching up on back e-mail here after a lot of conference  
> organizing :-). Did this issue get resolved to everyone (most  
> people)'s satisfaction? I've CC'd Pawel.
> 
I mailed the following patch relatively long time ago.
I want /etc/rc.early support back.

diff --git a/etc/rc.d/Makefile b/etc/rc.d/Makefile
index fbfac8a..45f4dc6 100755
--- a/etc/rc.d/Makefile
+++ b/etc/rc.d/Makefile
_at__at_ -9,7 +9,7 _at__at_ FILES=	DAEMON FILESYSTEMS LOGIN NETWORKING SERVERS \
 	ccd cleanvar cleartmp cron \
 	ddb defaultroute devd devfs dhclient \
 	dmesg dumpon \
-	encswap \
+	early encswap \
 	faith fsck ftp-proxy ftpd \
 	gbde geli geli2 gssd \
 	hcsecd \
diff --git a/etc/rc.d/early b/etc/rc.d/early
new file mode 100755
index 0000000..8a863d0
--- /dev/null
+++ b/etc/rc.d/early
_at__at_ -0,0 +1,29 _at__at_
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: early
+# REQUIRE: disks localswap
+# BEFORE:  fsck
+
+#
+# Support for legacy /etc/rc.early script
+#
+. /etc/rc.subr
+
+name="early"
+start_cmd="early_start"
+stop_cmd=":"
+
+early_start()
+{
+	if [ -r /etc/rc.early ]; then
+		echo -n 'Executing rc.early script:'
+		. /etc/rc.early
+		echo '.'
+	fi
+}
+
+load_rc_config $name
+run_rc_command "$1"

Received on Tue Sep 22 2009 - 08:58:22 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:55 UTC