Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/etc/rc.d Pull up revision 1.7 (requested by abs in tick...



details:   https://anonhg.NetBSD.org/src/rev/4b30798aacd1
branches:  netbsd-1-6
changeset: 529572:4b30798aacd1
user:      he <he%NetBSD.org@localhost>
date:      Sat Nov 30 14:15:50 2002 +0000

description:
Pull up revision 1.7 (requested by abs in ticket #772):
  Split raidframe parity checking/rebuilding out into
  raidframeparity, which is called after quota, so we don't
  end up with fsck and raidframe parity rebuild taking forever
  after a crash/reboot.
  While here, check for raid[0-9].conf and raid[1-9][0-9].conf
                and not raid[0-9].conf and raid[0-9][0-9].conf

diffstat:

 etc/rc.d/raidframe |  18 +++---------------
 1 files changed, 3 insertions(+), 15 deletions(-)

diffs (40 lines):

diff -r 842d49226125 -r 4b30798aacd1 etc/rc.d/raidframe
--- a/etc/rc.d/raidframe        Sat Nov 30 14:15:27 2002 +0000
+++ b/etc/rc.d/raidframe        Sat Nov 30 14:15:50 2002 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: raidframe,v 1.6 2002/01/27 14:16:33 lukem Exp $
+# $NetBSD: raidframe,v 1.6.2.1 2002/11/30 14:15:50 he Exp $
 #
 
 # PROVIDE: disks
@@ -14,26 +14,14 @@
 raidframe_start()
 {
        # Configure non-auto-configured raid devices.
-       # Ensure order by globbing raid[0-9].conf before raid[0-9][0-9].conf.
+       # Ensure order by globbing raid[0-9].conf before raid[1-9][0-9].conf.
        #
-       for cfg in /etc/raid[0-9].conf /etc/raid[0-9][0-9].conf ; do
+       for cfg in /etc/raid[0-9].conf /etc/raid[1-9][0-9].conf ; do
                [ ! -f $cfg ] && continue
                dev=${cfg##*/}
                dev=${dev%%.conf}
                raidctl -c $cfg $dev
        done
-
-       # Initiate parity/mirror reconstruction as needed, in the background.
-       #
-       (
-               for dev in `sysctl -n hw.disknames`; do
-                       case $dev in
-                       raid[0-9]*)
-                               raidctl -P $dev
-                               ;;
-                       esac
-               done
-       ) &
 }
 
 load_rc_config $name



Home | Main Index | Thread Index | Old Index