Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc/rc.d At boot, initiate parity/mirror reconstruction as r...
details: https://anonhg.NetBSD.org/src/rev/ec4abb69b74c
branches: trunk
changeset: 486239:ec4abb69b74c
user: oster <oster%NetBSD.org@localhost>
date: Tue May 16 16:54:33 2000 +0000
description:
At boot, initiate parity/mirror reconstruction as required.
This operation is backgrounded, and sequentially ordered.
diffstat:
etc/rc.d/raidframe | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diffs (29 lines):
diff -r 9e0b65cbf9b5 -r ec4abb69b74c etc/rc.d/raidframe
--- a/etc/rc.d/raidframe Tue May 16 16:38:15 2000 +0000
+++ b/etc/rc.d/raidframe Tue May 16 16:54:33 2000 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: raidframe,v 1.3 2000/05/13 08:45:08 lukem Exp $
+# $NetBSD: raidframe,v 1.4 2000/05/16 16:54:33 oster Exp $
#
# PROVIDE: disks
@@ -20,6 +20,17 @@
raidctl -c /etc/raid$dev.conf raid$dev
fi
done
+
+ # Initiate parity/mirror reconstruction as needed.
+ # Backgrounded, and sequentially ordered.
+ #
+ (
+ for dev in 0 1 2 3; do
+ if [ -f /etc/raid$dev.conf ]; then
+ raidctl -P raid$dev
+ fi
+ done
+ ) &
}
load_rc_config $name
Home |
Main Index |
Thread Index |
Old Index