1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-17 06:04:23 +03:00

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).
This commit is contained in:
Zdenek Kabelac 2013-06-05 13:44:10 +02:00
parent 272f5ae208
commit 7151ede767
2 changed files with 2 additions and 1 deletions

View File

@ -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.

View File

@ -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';