Whamcloud - gitweb
- use stdout for regular messages
authorrread <rread>
Tue, 16 Jul 2002 20:52:12 +0000 (20:52 +0000)
committerrread <rread>
Tue, 16 Jul 2002 20:52:12 +0000 (20:52 +0000)
lustre/utils/lctl.c
lustre/utils/network.c

index 7b8ed18..1f8772d 100644 (file)
@@ -86,8 +86,8 @@ command_t cmdlist[] = {
          "The nid defaults to hostname for tcp networks and is automatically "
          "setup for elan/myrinet networks.\n"
          "usage: mynid [nid]"},
-        {"add_uuid", jt_net_add_uuid, 0, "associate a name/uuid with a nid\n"
-         "usage: add_uuid <name> <uuid> <nid>"},
+        {"add_uuid", jt_net_add_uuid, 0, "associate a uuid with a nid\n"
+         "usage: add_uuid <uuid> <nid>"},
         {"del_uuid", jt_net_del_uuid, 0, "delete a uuid association\n"
          "usage: del_uuid <uuid>"},
         {"add_route", jt_net_add_route, 0,
@@ -136,7 +136,7 @@ command_t cmdlist[] = {
          "usage: detach"},
         {"lovconfig", jt_dev_lov_config, 0,
          "write lov configuration to a mds device\n"
-         "usage: lovconfig"},
+         "usage: lovconfig lov-uuid stripcount stripsize pattern UUID1 [UUID2 ...]"},
 
         /* Device operations */
         {"=== device operations ==", jt_noop, 0, "device operations"},
index 5639197..8f10f11 100644 (file)
@@ -260,7 +260,7 @@ int jt_net_connect(int argc, char **argv) {
                         fprintf(stderr, "Can't get nagle: %s\n",
                                 strerror(errno));
 
-                fprintf(stderr, "Connected to %s (snd %d, rcv %d, nagle %s)\n",
+                printf("Connected to %s (snd %d, rcv %d, nagle %s)\n",
                         argv[1],txmem,rxmem,nonagle ? "Disabled" : "Enabled");
 
                 PORTAL_IOC_INIT(data);
@@ -276,7 +276,7 @@ int jt_net_connect(int argc, char **argv) {
                 }
 
                 g_nid = ntohl (srvaddr.sin_addr.s_addr); /* HOST byte order */
-                fprintf(stderr, "Connection to 0x%x registered with socknal\n",
+                printf("Connection to 0x%x registered with socknal\n",
                         g_nid);
 
                 rc = close(fd);
@@ -300,7 +300,7 @@ int jt_net_disconnect(int argc, char **argv) {
                 return CMD_HELP;
         
         if (g_nal == 0) {
-                fprintf(stderr, "Error: you must run the 'setup' command "
+                fprintf(stderr, "Error: you must run the 'network' command "
                         "first.\n");
                 return -1;
         }
@@ -333,10 +333,10 @@ int jt_net_disconnect(int argc, char **argv) {
                         return -1;
                 }
         } else if (g_nal == QSWNAL) {
-                fprintf(stderr, "'disconnect' doesn't make any sense for "
+                printf("'disconnect' doesn't make any sense for "
                         "elan.\n");
         } else if (g_nal == GMNAL) {
-                fprintf(stderr, "'disconnect' doesn't make any sense for "
+                printf("'disconnect' doesn't make any sense for "
                         "GM.\n");
         } else {
                 fprintf(stderr, "This should never happen.  Also it is very "
@@ -464,7 +464,7 @@ int jt_net_mynid(int argc, char **argv) {
                 fprintf(stderr, "IOC_PORTAL_REGISTER_MYNID failed: %s\n",
                        strerror(errno));
         else
-                fprintf(stderr, "registered my nid 0x%Lx (%s)\n",
+                printf("registered my nid 0x%Lx (%s)\n",
                         mynid, hostname);
         return 0;
 }
@@ -506,7 +506,7 @@ int jt_net_add_uuid(int argc, char **argv) {
                 return -1;
         }
 
-        fprintf (stderr, "Added uuid %s: %s\n", argv[1], nid2str (tmp, nid));
+        printf ("Added uuid %s: %s\n", argv[1], nid2str (tmp, nid));
         return 0;
 }