* [PATCH] restore log state in check_current_backup
@ 2009-03-23 17:32 Takahiro Yasui
2009-03-23 17:51 ` Alasdair G Kergon
0 siblings, 1 reply; 2+ messages in thread
From: Takahiro Yasui @ 2009-03-23 17:32 UTC (permalink / raw)
To: lvm-devel
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@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)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-03-23 17:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-23 17:32 [PATCH] restore log state in check_current_backup Takahiro Yasui
2009-03-23 17:51 ` Alasdair G Kergon
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.