]> sourceware.org Git - lvm2.git/commitdiff
Remove extraneous messages for extent_size and alloc_policy upon vgcreate.
authorDave Wysochanski <dwysocha@redhat.com>
Thu, 16 Jul 2009 03:25:26 +0000 (03:25 +0000)
committerDave Wysochanski <dwysocha@redhat.com>
Thu, 16 Jul 2009 03:25:26 +0000 (03:25 +0000)
When converting to the new liblvm functions, the vgcreate code path
changed to create a new vg, then set values.  As a result of this
change, and the fact that we give a user a message if they try to
set the same value of a VG attribute (extent_size, alloc_policy, etc),
you'll see these 2 extraneous "is already" messages with vgcreate:
tools/lvm vgcreate vg2 /dev/loop2
  Physical extent size of VG vg2 is already 4.00 MB
  Volume group allocation policy is already normal
  Volume group "vg2" successfully created

Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
Author: Dave Wysochanski <dwysocha@redhat.com>

WHATS_NEW
lib/metadata/metadata.c

index e3299bf0a8167a8e7d4bf8ff9c2a6f07d668317c..2c168d1a10702751eb37d92b6de6d29c7a324c80 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 Version 2.02.50 - 
 ================================
+  Remove unnecessary messages after vgcreate/vgsplit refactor (2.02.49).
   Add log_errno to set a specific errno and replace log_error in due course.
   Add lvm_errno and lvm_errmsg to liblvm to obtain failure information.
   Change create_toolcontext to still return an object if it fails part-way.
index 7f58277408656023d1c918757bd968f1337a385d..13bba404d431e54a7589016652c7c1b923ccb957 100644 (file)
@@ -742,7 +742,7 @@ int vg_set_extent_size(vg_t *vg, uint32_t new_size)
        }
 
        if (new_size == vg->extent_size) {
-               log_error("Physical extent size of VG %s is already %s",
+               log_verbose("Physical extent size of VG %s is already %s",
                          vg->name, display_size(vg->cmd, (uint64_t) new_size));
                return 1;
        }
@@ -933,7 +933,7 @@ int vg_set_alloc_policy(vg_t *vg, alloc_policy_t alloc)
        }
 
        if (alloc == vg->alloc) {
-               log_print("Volume group allocation policy is already %s",
+               log_verbose("Volume group allocation policy is already %s",
                          get_alloc_string(vg->alloc));
                return 1;
        }
This page took 0.043733 seconds and 5 git commands to generate.