Skip to contentSkip to conversation

master - report: show proper info for merging origin

PATCH Zdenek Kabelac 1 participant 1 message Dec 22, 2016

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=77997c7673bfca56f51ae4eb55a50bc76e40fe79
Commit:        77997c7673bfca56f51ae4eb55a50bc76e40fe79
Parent:        2aee4769b43a08eed549bd324664af5f406a25b2
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Thu Dec 22 19:51:35 2016 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Thu Dec 22 23:37:07 2016 +0100

report: show proper info for merging origin

When there is 'merging' of an origin in progress, but metadata stil do provide both origin and snapshot, we should show data from merged snapshot. This is important mainly for thin case, where there was a window, where i.e. 'lvs -o+device_id' would report information about 'already gone' origin thin LV.

This race window is usually hard to trigger but can be ocasionally hit. Usually shortly after activation, but before polling process manages to update metadata after merge.

---
 WHATS_NEW        |    1 +
 tools/reporter.c |   58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 59 insertions(+), 0 deletions(-)
WHATS_NEW +1 -0
index dcfd85a..e5bbfe0 100644
@@ -1,5 +1,6 @@
 Version 2.02.169 - 
 =====================================
+  Report thin LV date for merged LV when the merge is in progress.
   Detect if snapshot merge really started before polling for progress.
   Checking LV for merging origin requires also it has merged snapshot.
   Extend validation of metadata processing.
tools/reporter.c +58 -0

84 lines not on this page · raw message