Source-Changes-HG archive

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

[src/trunk]: src Squash some nits.



details:   https://anonhg.NetBSD.org/src/rev/a448fa33481a
branches:  trunk
changeset: 503447:a448fa33481a
user:      ad <ad%NetBSD.org@localhost>
date:      Tue Feb 06 12:53:48 2001 +0000

description:
Squash some nits.

diffstat:

 sys/dev/ic/mlx.c         |  19 ++++++++-----------
 usr.sbin/mlxctl/extern.h |   4 ++--
 usr.sbin/mlxctl/mlxctl.8 |  11 +++++------
 3 files changed, 15 insertions(+), 19 deletions(-)

diffs (124 lines):

diff -r 3485608f9a35 -r a448fa33481a sys/dev/ic/mlx.c
--- a/sys/dev/ic/mlx.c  Tue Feb 06 12:22:24 2001 +0000
+++ b/sys/dev/ic/mlx.c  Tue Feb 06 12:53:48 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mlx.c,v 1.2 2001/02/05 04:50:27 enami Exp $    */
+/*     $NetBSD: mlx.c,v 1.3 2001/02/06 12:53:48 ad Exp $       */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -1163,7 +1163,7 @@
 #endif
        }
 
-out:
+ out:
        if (mc->mc_mbox[0] == MLX_CMD_ENQSYSDRIVE)
                mlx->mlx_flags &= ~MLXF_PERIODIC_DRIVE;
        else
@@ -1207,7 +1207,7 @@
        /* Start the command. */
        mlx_ccb_enqueue(mlx, mc);
 
-out:
+ out:
        if (rv != 0) {
                if (mc != NULL)
                        mlx_ccb_free(mlx, mc);
@@ -1525,7 +1525,7 @@
        }
 
        rv = 0;
-out:
+ out:
        /* We got a command, but nobody else will free it. */
        if (handler == NULL && mc != NULL) {
                if (mapped)
@@ -1578,7 +1578,7 @@
                    mlx_ccb_diagnose(mc));
                rv = EIO;
        }
-out:
+ out:
        if (mc != NULL)
                mlx_ccb_free(mlx, mc);
 
@@ -1587,9 +1587,6 @@
 
 /*
  * Start a background consistency check on (drive).
- *
- * May be called with interrupts enabled or disabled; will return as soon as
- * the operation has started or been refused.
  */
 static int
 mlx_check(struct mlx_softc *mlx, int drive)
@@ -1620,7 +1617,7 @@
                    mlx->mlx_sysdrive[drive].ms_dv->dv_xname);
 
        rv = mc->mc_status;
-out:
+ out:
        if (mc != NULL)
                mlx_ccb_free(mlx, mc);
 
@@ -1660,7 +1657,7 @@
 
        error = mc->mc_status;
 
-out:
+ out:
        if (mc != NULL)
                mlx_ccb_free(mlx, mc);
 
@@ -1770,7 +1767,7 @@
 #endif
        }
 
-out:
+ out:
        if (mc != NULL) {
                if (mapped)
                        mlx_ccb_unmap(mlx, mc);
diff -r 3485608f9a35 -r a448fa33481a usr.sbin/mlxctl/extern.h
--- a/usr.sbin/mlxctl/extern.h  Tue Feb 06 12:22:24 2001 +0000
+++ b/usr.sbin/mlxctl/extern.h  Tue Feb 06 12:53:48 2001 +0000
@@ -1,7 +1,7 @@
-/*     $NetBSD: extern.h,v 1.1 2001/02/04 17:30:37 ad Exp $    */
+/*     $NetBSD: extern.h,v 1.2 2001/02/06 12:53:49 ad Exp $    */
 
 /*-
- * Copyright (c) 2000 The NetBSD Foundation, Inc.
+ * Copyright (c) 2001 The NetBSD Foundation, Inc.
  * All rights reserved.
  *
  * This code is derived from software contributed to The NetBSD Foundation
diff -r 3485608f9a35 -r a448fa33481a usr.sbin/mlxctl/mlxctl.8
--- a/usr.sbin/mlxctl/mlxctl.8  Tue Feb 06 12:22:24 2001 +0000
+++ b/usr.sbin/mlxctl/mlxctl.8  Tue Feb 06 12:53:48 2001 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: mlxctl.8,v 1.1 2001/02/04 17:30:37 ad Exp $
+.\"    $NetBSD: mlxctl.8,v 1.2 2001/02/06 12:53:49 ad Exp $
 .\"
 .\" Copyright (c) 2001 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -125,15 +125,14 @@
 1 if one or more drives are critical and
 2 if one or more are offline.
 .It rescan
-Rescan the controller for new, unattached or changed drives.
+Re-scan the logical drive table, and attach or detach devices from the system
+as necessary.
 .It detach
 Detach the specified drives.  Drives must be unmounted and unopened for this
 command to succeed.
 .It check
-Initiate a consistency check and repair pass on a redundant drive
-(eg. RAID1 or RAID5).
-The controller will scan the drive and repair any inconsistencies.  This
-command returns immediately.  The
+Initiate a consistency check and repair pass on a drive that provides
+redundancy (eg. RAID1 or RAID5).  This command returns immediately.  The
 .Ar status
 command can be used to monitor the progress of the check.
 .It rebuild



Home | Main Index | Thread Index | Old Index