summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2014-11-04 09:51:58 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2014-11-04 15:28:00 +0100
commitee627884de95ae5a40f0fc2534dcd60e63e2a58d (patch)
tree52f72acd29add655c425403947d474b0d38787d9
parent26aa912b4663633c6e094bad85393601903bcaac (diff)
downloadlvm2-ee627884de95ae5a40f0fc2534dcd60e63e2a58d.tar.gz
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.
-rw-r--r--lib/activate/dev_manager.c3
1 files changed, 3 insertions, 0 deletions
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.");