[libvirt] [PATCH v2 01/14] virsh: Covert VSH_POOL_ macro to VIRSH_POOL_

John Ferlan jferlan at redhat.com
Fri Dec 18 15:45:38 UTC 2015


Commit id's 'cf793b00', 'e178688f', 'f9a6110f', '5372d49', and 'e193735'
added new VSH_POOL_ macros; however, it was pointed out after push that
commit id '834c5720' preferred use of VIRSH_ for the prefix over VSH_.

So this patch just changes the VSH_ to VIRSH_

Signed-off-by: John Ferlan <jferlan at redhat.com>
---
 tools/virsh-pool.c | 66 +++++++++++++++++++++++++++---------------------------
 1 file changed, 33 insertions(+), 33 deletions(-)

diff --git a/tools/virsh-pool.c b/tools/virsh-pool.c
index f2f25da..b8b37e4 100644
--- a/tools/virsh-pool.c
+++ b/tools/virsh-pool.c
@@ -33,42 +33,42 @@
 #include "conf/storage_conf.h"
 #include "virstring.h"
 
-#define VSH_POOL_OPT_COMMON                                   \
+#define VIRSH_POOL_OPT_COMMON                                 \
     {.name = "pool",                                          \
      .type = VSH_OT_DATA,                                     \
      .flags = VSH_OFLAG_REQ,                                  \
      .help = N_("pool name or uuid")                          \
     }                                                         \
 
-#define VSH_POOL_FILE_OPT_COMMON                              \
+#define VIRSH_POOL_FILE_OPT_COMMON                            \
     {.name = "file",                                          \
      .type = VSH_OT_DATA,                                     \
      .flags = VSH_OFLAG_REQ,                                  \
      .help = N_("file containing an XML pool description")    \
     }                                                         \
 
-#define VSH_POOL_BUILD_OPT_COMMON                             \
+#define VIRSH_POOL_BUILD_OPT_COMMON                           \
     {.name = "build",                                         \
      .type = VSH_OT_BOOL,                                     \
      .flags = 0,                                              \
      .help = N_("build the pool as normal")                   \
     }                                                         \
 
-#define VSH_POOL_NO_OVERWRITE_OPT_COMMON                          \
+#define VIRSH_POOL_NO_OVERWRITE_OPT_COMMON                        \
     {.name = "no-overwrite",                                      \
      .type = VSH_OT_BOOL,                                         \
      .flags = 0,                                                  \
      .help = N_("do not overwrite an existing pool of this type") \
     }                                                             \
 
-#define VSH_POOL_OVERWRITE_OPT_COMMON                             \
+#define VIRSH_POOL_OVERWRITE_OPT_COMMON                           \
     {.name = "overwrite",                                         \
      .type = VSH_OT_BOOL,                                         \
      .flags = 0,                                                  \
      .help = N_("overwrite any existing data")                    \
     }                                                             \
 
-#define VSH_POOL_X_AS_OPT_COMMON                                       \
+#define VIRSH_POOL_X_AS_OPT_COMMON                                     \
     {.name = "name",                                                   \
      .type = VSH_OT_DATA,                                              \
      .flags = VSH_OFLAG_REQ,                                           \
@@ -188,7 +188,7 @@ static const vshCmdInfo info_pool_autostart[] = {
 };
 
 static const vshCmdOptDef opts_pool_autostart[] = {
-    VSH_POOL_OPT_COMMON,
+    VIRSH_POOL_OPT_COMMON,
 
     {.name = "disable",
      .type = VSH_OT_BOOL,
@@ -241,10 +241,10 @@ static const vshCmdInfo info_pool_create[] = {
 };
 
 static const vshCmdOptDef opts_pool_create[] = {
-    VSH_POOL_FILE_OPT_COMMON,
-    VSH_POOL_BUILD_OPT_COMMON,
-    VSH_POOL_NO_OVERWRITE_OPT_COMMON,
-    VSH_POOL_OVERWRITE_OPT_COMMON,
+    VIRSH_POOL_FILE_OPT_COMMON,
+    VIRSH_POOL_BUILD_OPT_COMMON,
+    VIRSH_POOL_NO_OVERWRITE_OPT_COMMON,
+    VIRSH_POOL_OVERWRITE_OPT_COMMON,
 
     {.name = NULL}
 };
@@ -297,7 +297,7 @@ cmdPoolCreate(vshControl *ctl, const vshCmd *cmd)
 }
 
 static const vshCmdOptDef opts_pool_define_as[] = {
-    VSH_POOL_X_AS_OPT_COMMON,
+    VIRSH_POOL_X_AS_OPT_COMMON,
 
     {.name = NULL}
 };
@@ -413,10 +413,10 @@ static const vshCmdInfo info_pool_create_as[] = {
 };
 
 static const vshCmdOptDef opts_pool_create_as[] = {
-    VSH_POOL_X_AS_OPT_COMMON,
-    VSH_POOL_BUILD_OPT_COMMON,
-    VSH_POOL_NO_OVERWRITE_OPT_COMMON,
-    VSH_POOL_OVERWRITE_OPT_COMMON,
+    VIRSH_POOL_X_AS_OPT_COMMON,
+    VIRSH_POOL_BUILD_OPT_COMMON,
+    VIRSH_POOL_NO_OVERWRITE_OPT_COMMON,
+    VIRSH_POOL_OVERWRITE_OPT_COMMON,
 
     {.name = NULL}
 };
@@ -484,7 +484,7 @@ static const vshCmdInfo info_pool_define[] = {
 };
 
 static const vshCmdOptDef opts_pool_define[] = {
-    VSH_POOL_FILE_OPT_COMMON,
+    VIRSH_POOL_FILE_OPT_COMMON,
 
     {.name = NULL}
 };
@@ -575,9 +575,9 @@ static const vshCmdInfo info_pool_build[] = {
 };
 
 static const vshCmdOptDef opts_pool_build[] = {
-    VSH_POOL_OPT_COMMON,
-    VSH_POOL_NO_OVERWRITE_OPT_COMMON,
-    VSH_POOL_OVERWRITE_OPT_COMMON,
+    VIRSH_POOL_OPT_COMMON,
+    VIRSH_POOL_NO_OVERWRITE_OPT_COMMON,
+    VIRSH_POOL_OVERWRITE_OPT_COMMON,
 
     {.name = NULL}
 };
@@ -625,7 +625,7 @@ static const vshCmdInfo info_pool_destroy[] = {
 };
 
 static const vshCmdOptDef opts_pool_destroy[] = {
-    VSH_POOL_OPT_COMMON,
+    VIRSH_POOL_OPT_COMMON,
 
     {.name = NULL}
 };
@@ -665,7 +665,7 @@ static const vshCmdInfo info_pool_delete[] = {
 };
 
 static const vshCmdOptDef opts_pool_delete[] = {
-    VSH_POOL_OPT_COMMON,
+    VIRSH_POOL_OPT_COMMON,
 
     {.name = NULL}
 };
@@ -705,7 +705,7 @@ static const vshCmdInfo info_pool_refresh[] = {
 };
 
 static const vshCmdOptDef opts_pool_refresh[] = {
-    VSH_POOL_OPT_COMMON,
+    VIRSH_POOL_OPT_COMMON,
 
     {.name = NULL}
 };
@@ -745,7 +745,7 @@ static const vshCmdInfo info_pool_dumpxml[] = {
 };
 
 static const vshCmdOptDef opts_pool_dumpxml[] = {
-    VSH_POOL_OPT_COMMON,
+    VIRSH_POOL_OPT_COMMON,
 
     {.name = "inactive",
      .type = VSH_OT_BOOL,
@@ -1596,7 +1596,7 @@ static const vshCmdInfo info_pool_info[] = {
 };
 
 static const vshCmdOptDef opts_pool_info[] = {
-    VSH_POOL_OPT_COMMON,
+    VIRSH_POOL_OPT_COMMON,
 
     {.name = NULL}
 };
@@ -1673,7 +1673,7 @@ static const vshCmdInfo info_pool_name[] = {
 };
 
 static const vshCmdOptDef opts_pool_name[] = {
-    VSH_POOL_OPT_COMMON,
+    VIRSH_POOL_OPT_COMMON,
 
     {.name = NULL}
 };
@@ -1705,10 +1705,10 @@ static const vshCmdInfo info_pool_start[] = {
 };
 
 static const vshCmdOptDef opts_pool_start[] = {
-    VSH_POOL_OPT_COMMON,
-    VSH_POOL_BUILD_OPT_COMMON,
-    VSH_POOL_NO_OVERWRITE_OPT_COMMON,
-    VSH_POOL_OVERWRITE_OPT_COMMON,
+    VIRSH_POOL_OPT_COMMON,
+    VIRSH_POOL_BUILD_OPT_COMMON,
+    VIRSH_POOL_NO_OVERWRITE_OPT_COMMON,
+    VIRSH_POOL_OVERWRITE_OPT_COMMON,
 
     {.name = NULL}
 };
@@ -1766,7 +1766,7 @@ static const vshCmdInfo info_pool_undefine[] = {
 };
 
 static const vshCmdOptDef opts_pool_undefine[] = {
-    VSH_POOL_OPT_COMMON,
+    VIRSH_POOL_OPT_COMMON,
 
     {.name = NULL}
 };
@@ -1806,7 +1806,7 @@ static const vshCmdInfo info_pool_uuid[] = {
 };
 
 static const vshCmdOptDef opts_pool_uuid[] = {
-    VSH_POOL_OPT_COMMON,
+    VIRSH_POOL_OPT_COMMON,
 
     {.name = NULL}
 };
@@ -1843,7 +1843,7 @@ static const vshCmdInfo info_pool_edit[] = {
 };
 
 static const vshCmdOptDef opts_pool_edit[] = {
-    VSH_POOL_OPT_COMMON,
+    VIRSH_POOL_OPT_COMMON,
 
     {.name = NULL}
 };
-- 
2.5.0




More information about the libvir-list mailing list