[lvm-devel] [PATCH] restore log state in check_current_backup
Takahiro Yasui
tyasui at redhat.com
Mon Mar 23 17:32:14 UTC 2009
Hi,
This is a patch to restore a log state properly when backup is up-to-date
in check_current_backup function.
Regards,
---
Takahiro Yasui
Hitachi Computer Products (America), Inc.
Signed-off-by: Takahiro Yasui <tyasui at redhat.com>
---
lib/format_text/archiver.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
Index: LVM2.02.46-20090316/lib/format_text/archiver.c
===================================================================
--- LVM2.02.46-20090316.orig/lib/format_text/archiver.c
+++ LVM2.02.46-20090316/lib/format_text/archiver.c
@@ -405,8 +405,10 @@ void check_current_backup(struct volume_
/* Up-to-date backup exists? */
if ((vg_backup = backup_read_vg(vg->cmd, vg->name, path)) &&
(vg->seqno == vg_backup->seqno) &&
- (id_equal(&vg->id, &vg_backup->id)))
+ (id_equal(&vg->id, &vg_backup->id))) {
+ log_suppress(0);
return;
+ }
log_suppress(0);
if (vg_backup)
More information about the lvm-devel
mailing list