Module Name: src Committed By: oster Date: Sun Aug 1 20:26:53 UTC 2021
Modified Files: src/sbin/raidctl: raidctl.c Log Message: Move case 'l' to be in sorted order. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.72 -r1.73 src/sbin/raidctl/raidctl.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sbin/raidctl/raidctl.c diff -u src/sbin/raidctl/raidctl.c:1.72 src/sbin/raidctl/raidctl.c:1.73 --- src/sbin/raidctl/raidctl.c:1.72 Sun Sep 13 06:04:53 2020 +++ src/sbin/raidctl/raidctl.c Sun Aug 1 20:26:53 2021 @@ -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 @@ main(int argc,char *argv[]) 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 @@ main(int argc,char *argv[]) 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));