summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2016-02-23 12:15:42 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2016-02-23 12:25:25 +0100
commit293aabe4cd43a80fa94d7adb009fb8ab6c9d3641 (patch)
tree0a67930db8f1adb01a5bf94fbd826357688c9a34
parentf501f083bf1ea9f60a8b18aa9b5d59f3459ee4a6 (diff)
downloadlvm2-293aabe4cd43a80fa94d7adb009fb8ab6c9d3641.tar.gz
cache: enforce header check
Currently it's been checked for 'zero' header for thin-pool, but lets use it always for cache as well - since it's relatively 'cheap' detection of read 'error' problems as thin/cache tools currently do not work fast enough in this case.
-rw-r--r--WHATS_NEW1
-rw-r--r--lib/activate/dev_manager.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/WHATS_NEW b/WHATS_NEW
index 355712c6b..8c1127790 100644
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
Version 2.02.144 -
=====================================
+ Use uninitilized pool header detection in all cases.
Fir read error detection when checking for uninitialized thin-pool header.
Fix error path for internal error in lvmetad vg lookup code.
diff --git a/lib/activate/dev_manager.c b/lib/activate/dev_manager.c
index 15d6bb93c..fbb068855 100644
--- a/lib/activate/dev_manager.c
+++ b/lib/activate/dev_manager.c
@@ -1916,7 +1916,7 @@ static int _pool_register_callback(struct dev_manager *dm,
data->global = "thin";
} else if (lv_is_cache(lv)) { /* cache pool */
data->pool_lv = first_seg(lv)->pool_lv;
- data->skip_zero = dm->activation;
+ data->skip_zero = 1; /* cheap read-error detection */
data->exec = global_cache_check_executable_CFG;
data->opts = global_cache_check_options_CFG;
data->global = "cache";