Source-Changes-HG archive

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

[src/trunk]: src/sbin/scsictl Make `all' a synonym for the `any' keyword.



details:   https://anonhg.NetBSD.org/src/rev/b6f60de6401a
branches:  trunk
changeset: 476819:b6f60de6401a
user:      ad <ad%NetBSD.org@localhost>
date:      Tue Sep 28 23:32:04 1999 +0000

description:
Make `all' a synonym for the `any' keyword.

diffstat:

 sbin/scsictl/scsictl.8 |  8 +++++---
 sbin/scsictl/scsictl.c |  8 ++++----
 2 files changed, 9 insertions(+), 7 deletions(-)

diffs (58 lines):

diff -r f6f191f5d733 -r b6f60de6401a sbin/scsictl/scsictl.8
--- a/sbin/scsictl/scsictl.8    Tue Sep 28 23:20:42 1999 +0000
+++ b/sbin/scsictl/scsictl.8    Tue Sep 28 23:32:04 1999 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: scsictl.8,v 1.3 1999/07/30 02:29:04 hubertf Exp $
+.\"    $NetBSD: scsictl.8,v 1.4 1999/09/28 23:32:04 ad Exp $
 .\"
 .\" Copyright (c) 1998 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -116,8 +116,10 @@
 and
 .Ar lun
 arguments specify which SCSI target and lun on the bus is to be scanned.
-Either may be wildcarded by specifying
-.Dq any .
+Either may be wildcarded by specifying the keyword
+.Dq any
+or
+.Dq all .
 .Sh FILES
 /dev/scsibus* - for commands operating on SCSI busses
 .Sh SEE ALSO
diff -r f6f191f5d733 -r b6f60de6401a sbin/scsictl/scsictl.c
--- a/sbin/scsictl/scsictl.c    Tue Sep 28 23:20:42 1999 +0000
+++ b/sbin/scsictl/scsictl.c    Tue Sep 28 23:32:04 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: scsictl.c,v 1.7 1999/08/13 21:12:18 mjl Exp $  */
+/*     $NetBSD: scsictl.c,v 1.8 1999/09/28 23:32:04 ad Exp $   */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -180,7 +180,7 @@
        for (i=0; bus_commands[i].cmd_name != NULL; i++)
                fprintf(stderr, "\t%s %s\n", bus_commands[i].cmd_name,
                                            bus_commands[i].arg_names);
-       fprintf(stderr, "   Use `any' to wildcard target or lun\n");
+       fprintf(stderr, "   Use `any' or `all' to wildcard target or lun\n");
        
        exit(1);
 }
@@ -388,7 +388,7 @@
        if (argc != 2)
                usage();
 
-       if (strcmp(argv[0], "any") == 0)
+       if (strcmp(argv[0], "any") == 0 || strcmp(argv[0], "all") == 0)
                args.sa_target = -1;
        else {
                args.sa_target = strtol(argv[0], &cp, 10);
@@ -396,7 +396,7 @@
                        errx(1, "invalid target: %s\n", argv[0]);
        }
 
-       if (strcmp(argv[1], "any") == 0)
+       if (strcmp(argv[1], "any") == 0 || strcmp(argv[1], "all") == 0)
                args.sa_lun = -1;
        else {
                args.sa_lun = strtol(argv[1], &cp, 10);



Home | Main Index | Thread Index | Old Index