Source-Changes-HG archive

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

[src/trunk]: src/sbin/dkctl Sort command list in usage.



details:   https://anonhg.NetBSD.org/src/rev/d9f160b713b6
branches:  trunk
changeset: 342730:d9f160b713b6
user:      wiz <wiz%NetBSD.org@localhost>
date:      Wed Jan 06 23:03:13 2016 +0000

description:
Sort command list in usage.

diffstat:

 sbin/dkctl/dkctl.c |  50 +++++++++++++++++++++++++-------------------------
 1 files changed, 25 insertions(+), 25 deletions(-)

diffs (100 lines):

diff -r ed1d4f73a970 -r d9f160b713b6 sbin/dkctl/dkctl.c
--- a/sbin/dkctl/dkctl.c        Wed Jan 06 23:01:11 2016 +0000
+++ b/sbin/dkctl/dkctl.c        Wed Jan 06 23:03:13 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dkctl.c,v 1.22 2014/11/23 15:43:49 christos Exp $      */
+/*     $NetBSD: dkctl.c,v 1.23 2016/01/06 23:03:13 wiz Exp $   */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -41,7 +41,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: dkctl.c,v 1.22 2014/11/23 15:43:49 christos Exp $");
+__RCSID("$NetBSD: dkctl.c,v 1.23 2016/01/06 23:03:13 wiz Exp $");
 #endif
 
 #include <sys/param.h>
@@ -104,24 +104,9 @@
 static void    disk_strategy(int, char *[]);
 
 static struct command commands[] = {
-       { "getcache",
-         "",
-         disk_getcache,
-         O_RDONLY },
-
-       { "setcache",
-         "none | r | w | rw [save]",
-         disk_setcache,
-         O_RDWR },
-
-       { "synccache",
-         "[force]",
-         disk_synccache,
-         O_RDWR },
-
-       { "keeplabel",
-         YESNO_ARG,
-         disk_keeplabel,
+       { "addwedge",
+         "name startblk blkcnt ptype",
+         disk_addwedge,
          O_RDWR },
 
        { "badsector",
@@ -129,21 +114,26 @@
           disk_badsectors,
           O_RDWR },
 
-       { "addwedge",
-         "name startblk blkcnt ptype",
-         disk_addwedge,
-         O_RDWR },
-
        { "delwedge",
          "dk",
          disk_delwedge,
          O_RDWR },
 
+       { "getcache",
+         "",
+         disk_getcache,
+         O_RDONLY },
+
        { "getwedgeinfo",
          "",
          disk_getwedgeinfo,
          O_RDONLY },
 
+       { "keeplabel",
+         YESNO_ARG,
+         disk_keeplabel,
+         O_RDWR },
+
        { "listwedges",
          "",
          disk_listwedges,
@@ -154,11 +144,21 @@
          disk_makewedges,
          O_RDWR },
 
+       { "setcache",
+         "none | r | w | rw [save]",
+         disk_setcache,
+         O_RDWR },
+
        { "strategy",
          "[name]",
          disk_strategy,
          O_RDWR },
 
+       { "synccache",
+         "[force]",
+         disk_synccache,
+         O_RDWR },
+
        { NULL,
          NULL,
          NULL,



Home | Main Index | Thread Index | Old Index