From ee627884de95ae5a40f0fc2534dcd60e63e2a58d Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 4 Nov 2014 09:51:58 +0100 Subject: [PATCH] thin: no validation skip of new thin pools Allowing 'external' use of thin-pools requires to validate even so far 'unused' new thin pools. Later we may have 'smarter' way to resolve which thin-pools are owned by lvm2 and which are external. --- lib/activate/dev_manager.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/activate/dev_manager.c b/lib/activate/dev_manager.c index 266c80a28..41911c127 100644 --- a/lib/activate/dev_manager.c +++ b/lib/activate/dev_manager.c @@ -1815,12 +1815,15 @@ static int _pool_register_callback(struct dev_manager *dm, { struct pool_cb_data *data; + /* Do not skip metadata of testing even for unused thin pools */ +#if 0 /* Skip metadata testing for unused thin pool. */ if (lv_is_thin_pool(lv) && (!first_seg(lv)->transaction_id || ((first_seg(lv)->transaction_id == 1) && pool_has_message(first_seg(lv), NULL, 0)))) return 1; +#endif if (!(data = dm_pool_zalloc(dm->mem, sizeof(*data)))) { log_error("Failed to allocated path for callback.");