mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
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.
This commit is contained in:
parent
f501f083bf
commit
293aabe4cd
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.144 -
|
Version 2.02.144 -
|
||||||
=====================================
|
=====================================
|
||||||
|
Use uninitilized pool header detection in all cases.
|
||||||
Fir read error detection when checking for uninitialized thin-pool header.
|
Fir read error detection when checking for uninitialized thin-pool header.
|
||||||
Fix error path for internal error in lvmetad vg lookup code.
|
Fix error path for internal error in lvmetad vg lookup code.
|
||||||
|
|
||||||
|
@ -1916,7 +1916,7 @@ static int _pool_register_callback(struct dev_manager *dm,
|
|||||||
data->global = "thin";
|
data->global = "thin";
|
||||||
} else if (lv_is_cache(lv)) { /* cache pool */
|
} else if (lv_is_cache(lv)) { /* cache pool */
|
||||||
data->pool_lv = first_seg(lv)->pool_lv;
|
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->exec = global_cache_check_executable_CFG;
|
||||||
data->opts = global_cache_check_options_CFG;
|
data->opts = global_cache_check_options_CFG;
|
||||||
data->global = "cache";
|
data->global = "cache";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user