Skip to contentSkip to conversation

master - pools: skip checks when tools are missing

PATCH Zdenek Kabelac 1 participant 1 message Mar 17, 2018

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=689af32313ac120dd67a16d73e78ede5295e308c
Commit:        689af32313ac120dd67a16d73e78ede5295e308c
Parent:        d68d71013fb261c87f1d3a26ebf098644055c6d1
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Sat Mar 17 21:50:03 2018 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Sat Mar 17 23:29:11 2018 +0100

pools: skip checks when tools are missing

If the tools for checking thin_pool or cache metadata are missing, issue rather just a WARNING, but let the operation of activation continue.

This has the advantage, the if user is missing those tools, but he already started to use thinpool or cacheing, he can access these volumes with a WARNING.

Also if the user is using too old tools i.e. for CacheV2 format dmpd tool 0.7 is required - provide informative WARNING and skip failure from older tool version which can't understand new format V2.

---
 WHATS_NEW                  |    1 +
 lib/activate/dev_manager.c |   64 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+), 0 deletions(-)
WHATS_NEW +1 -0
index 2ec7f7e..a974a6c 100644
@@ -1,5 +1,6 @@
 Version 2.02.178 - 
 =====================================
+  Allow activation of pools when thin/cache_check tool is missing.
   Remove RaidLV on creation failure when rmeta devices can't be activated.
   Add prioritized_section() to restore cookie boundaries (2.02.177).
   Enhance error messages when read error happens.
lib/activate/dev_manager.c +64 -0

85 lines not on this page · raw message