From 7151ede767ad168b71f338c48835fcf64a9e3ce7 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Wed, 5 Jun 2013 13:44:10 +0200 Subject: [PATCH] thin: report t for thin pool and volume Do not mark internal device _tdata and _tmeta as having target type 't'. They have the target type on their own (i.e. mirror, raid). --- WHATS_NEW | 1 + lib/metadata/lv.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW b/WHATS_NEW index 57aab93ce..96478e6b1 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.99 - =================================== + Report lvs target type 't' only for thin pools and thin volumes. Fix test for active snapshot in cluster before resizing it. Report backtrace from dump filter error path. Do not use persistent filter with lvmetad. diff --git a/lib/metadata/lv.c b/lib/metadata/lv.c index 182eb578c..e53fdf321 100644 --- a/lib/metadata/lv.c +++ b/lib/metadata/lv.c @@ -617,7 +617,7 @@ char *lv_attr_dup(struct dm_pool *mem, const struct logical_volume *lv) repstr[5] = '-'; } - if (lv_is_thin_type(lv)) + if (lv_is_thin_pool(lv) || lv_is_thin_volume(lv)) repstr[6] = 't'; else if (lv_is_raid_type(lv)) repstr[6] = 'r'; -- 2.43.5