Skip to contentSkip to conversation

xl:Add help for 'xl info' command

PATCH In review Yang Hongyang 1 participant 2 messages Apr 27, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xl:Add help for 'xl info' command

Add help for 'xl info' command

tools/libxl/xl.c +7 -1
diff -r c87ec146229a tools/libxl/xl.c
@@ -1107,6 +1107,7 @@
         printf(" vcpu-list                     list the VCPUs for all/some domains.\n\n");
         printf(" vcpu-pin                      Set which CPUs a VCPU can use.\n\n");
         printf(" vcpu-set                      Set the number of active VCPUs allowed for the domain.\n\n");
+        printf(" info                          Get information about Xen host.\n\n");
     } else if(!strcmp(command, "create")) {
         printf("Usage: xl create <ConfigFile> [options] [vars]\n\n");
         printf("Create a domain based on <ConfigFile>.\n\n");
@@ -1192,6 +1193,11 @@
     } else if (!strcmp(command, "vcpu-set")) {
         printf("Usage: xl vcpu-set <Domain> <vCPUs>\n\n");
         printf("Set the number of active VCPUs for allowed for the domain.\n\n");
+    } else if(!strcmp(command, "info")) {
+        printf("Usage: xl info [options]\n\n");
+        printf("Get information about Xen host.\n\n");
+        printf("Options:\n\n");
+        printf("-h                     Print this help.\n");
     }
 }
 
@@ -2741,7 +2747,7 @@
     while ((opt = getopt(argc, argv, "h")) != -1) {
         switch (opt) {
         case 'h':
-            help("vcpu-list");
+            help("info");
             exit(0);
         default:
             fprintf(stderr, "option `%c' not supported.\n", opt);
Signature · 2 lines
Regards
Yang Hongyang
#1 lore raw

Sorry,please ignore prev patch,the character encoding is not UTF-8.
===================================================================

Add help for 'xl info' command

tools/libxl/xl.c +7 -1
diff -r c87ec146229a tools/libxl/xl.c
@@ -1107,6 +1107,7 @@
         printf(" vcpu-list                     list the VCPUs for all/some domains.\n\n");
         printf(" vcpu-pin                      Set which CPUs a VCPU can use.\n\n");
         printf(" vcpu-set                      Set the number of active VCPUs allowed for the domain.\n\n");
+        printf(" info                          Get information about Xen host.\n\n");
     } else if(!strcmp(command, "create")) {
         printf("Usage: xl create <ConfigFile> [options] [vars]\n\n");
         printf("Create a domain based on <ConfigFile>.\n\n");
@@ -1192,6 +1193,11 @@
     } else if (!strcmp(command, "vcpu-set")) {
         printf("Usage: xl vcpu-set <Domain> <vCPUs>\n\n");
         printf("Set the number of active VCPUs for allowed for the domain.\n\n");
+    } else if(!strcmp(command, "info")) {
+        printf("Usage: xl info [options]\n\n");
+        printf("Get information about Xen host.\n\n");
+        printf("Options:\n\n");
+        printf("-h                     Print this help.\n");
     }
 }
 
@@ -2741,7 +2747,7 @@
     while ((opt = getopt(argc, argv, "h")) != -1) {
         switch (opt) {
         case 'h':
-            help("vcpu-list");
+            help("info");
             exit(0);
         default:
             fprintf(stderr, "option `%c' not supported.\n", opt);
Signature · 2 lines
Regards
Yang Hongyang