]> sourceware.org Git - lvm2.git/commitdiff
Remove 'is already' message from vg_set_* functions.
authorDave Wysochanski <dwysocha@redhat.com>
Thu, 16 Jul 2009 20:18:16 +0000 (20:18 +0000)
committerDave Wysochanski <dwysocha@redhat.com>
Thu, 16 Jul 2009 20:18:16 +0000 (20:18 +0000)
These messages are unnecessary in the set functions.  We check for this
condition and print a message in the vgchange tool but not the library
functions.

Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
lib/metadata/metadata.c

index 13bba404d431e54a7589016652c7c1b923ccb957..03e0810b64209af269df929cc60c382b6ab779cd 100644 (file)
@@ -741,11 +741,8 @@ int vg_set_extent_size(vg_t *vg, uint32_t new_size)
                return 0;
        }
 
-       if (new_size == vg->extent_size) {
-               log_verbose("Physical extent size of VG %s is already %s",
-                         vg->name, display_size(vg->cmd, (uint64_t) new_size));
+       if (new_size == vg->extent_size)
                return 1;
-       }
 
        if (new_size & (new_size - 1)) {
                log_error("Physical extent size must be a power of 2.");
@@ -932,11 +929,9 @@ int vg_set_alloc_policy(vg_t *vg, alloc_policy_t alloc)
                return 0;
        }
 
-       if (alloc == vg->alloc) {
-               log_verbose("Volume group allocation policy is already %s",
-                         get_alloc_string(vg->alloc));
+       if (alloc == vg->alloc)
                return 1;
-       }
+
        vg->alloc = alloc;
        return 1;
 }
This page took 0.041823 seconds and 5 git commands to generate.