]> sourceware.org Git - lvm2.git/commitdiff
archiver: drop unneeded backup check
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 18 Mar 2014 23:20:39 +0000 (00:20 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 18 Mar 2014 23:45:41 +0000 (00:45 +0100)
When the backup is disabled, avoid testing backup presence.
This only leads to errors being logged in debug trace and the missing
backup can't be fixed, since it's disabled.

WHATS_NEW
lib/format_text/archiver.c

index de96f8a762fa7f3ebb841bbd78dbbe40749e6327..e2c196a903f008718b45e6d3ac1cf01daa9cf5ce 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 Version 2.02.106 - 
 ====================================
+  Do not check for backups when when its creation is disabled.
   Don't allow --mergedconfig without --type current in dumpconfig. Fix memleak.
   Make global/lvdisplay_shows_full_device_path lvm.conf setting profilable.
   Make global/{units|si_unit_consistency|suffix} lvm.conf setting profilable.
index 31d17efce322aa37d55b4458df123387de2a6b57..2667bdbe8c0d3d1f3be8f57a7aee27b8f12b75e9 100644 (file)
@@ -487,6 +487,11 @@ void check_current_backup(struct volume_group *vg)
        struct volume_group *vg_backup;
        int old_suppress;
 
+       if (!vg->cmd->backup_params->enabled || !vg->cmd->backup_params->dir) {
+               log_debug("Skipping check for current backup, since backup is disabled.");
+               return;
+       }
+
        if (vg_is_exported(vg))
                return;
 
This page took 0.04437 seconds and 5 git commands to generate.