Source-Changes-HG archive

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

[src/trunk]: src/sbin/raidctl Move case 'l' to be in sorted order. No functi...



details:   https://anonhg.NetBSD.org/src/rev/5abcb0574f1a
branches:  trunk
changeset: 1022694:5abcb0574f1a
user:      oster <oster%NetBSD.org@localhost>
date:      Sun Aug 01 20:26:53 2021 +0000

description:
Move case 'l' to be in sorted order.  No functional change.

diffstat:

 sbin/raidctl/raidctl.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (42 lines):

diff -r 3717e1684dc8 -r 5abcb0574f1a sbin/raidctl/raidctl.c
--- a/sbin/raidctl/raidctl.c    Sun Aug 01 19:18:10 2021 +0000
+++ b/sbin/raidctl/raidctl.c    Sun Aug 01 20:26:53 2021 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: raidctl.c,v 1.72 2020/09/13 06:04:53 mlelstv Exp $   */
+/*      $NetBSD: raidctl.c,v 1.73 2021/08/01 20:26:53 oster Exp $   */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -39,7 +39,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: raidctl.c,v 1.72 2020/09/13 06:04:53 mlelstv Exp $");
+__RCSID("$NetBSD: raidctl.c,v 1.73 2021/08/01 20:26:53 oster Exp $");
 #endif
 
 
@@ -197,6 +197,11 @@
                        serial_number = xstrtouint(optarg);
                        num_options++;
                        break;
+               case 'l': 
+                       action = RAIDFRAME_SET_COMPONENT_LABEL;
+                       get_comp(component, optarg, sizeof(component));
+                       num_options++;
+                       break;
                case 'm':
                        action = RAIDFRAME_PARITYMAP_STATUS;
                        openmode = O_RDONLY;
@@ -214,11 +219,6 @@
                        while (i < 3)
                                parityparams[i++] = 0;
                        break;
-               case 'l': 
-                       action = RAIDFRAME_SET_COMPONENT_LABEL;
-                       get_comp(component, optarg, sizeof(component));
-                       num_options++;
-                       break;
                case 'r':
                        action = RAIDFRAME_REMOVE_HOT_SPARE;
                        get_comp(component, optarg, sizeof(component));



Home | Main Index | Thread Index | Old Index