1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 10:25:13 +03:00

thin: report 'e' volume type pool metadata spare

Reuse m'e'tadata volume type for spar'e' volume as well.
Essentially they are related and there is no big reason
to introduce new flag.
This commit is contained in:
Zdenek Kabelac 2013-06-17 19:42:52 +02:00
parent 460d0254eb
commit 915cc5a2fa
2 changed files with 2 additions and 1 deletions

View File

@ -547,6 +547,7 @@ char *lv_attr_dup(struct dm_pool *mem, const struct logical_volume *lv)
else if (lv_is_origin(lv) || lv_is_external_origin(lv)) else if (lv_is_origin(lv) || lv_is_external_origin(lv))
repstr[0] = (lv_is_merging_origin(lv)) ? 'O' : 'o'; repstr[0] = (lv_is_merging_origin(lv)) ? 'O' : 'o';
else if (lv_is_thin_pool_metadata(lv) || else if (lv_is_thin_pool_metadata(lv) ||
lv_is_pool_metadata_spare(lv) ||
(lv->status & RAID_META)) (lv->status & RAID_META))
repstr[0] = 'e'; repstr[0] = 'e';
else if (lv->status & RAID) else if (lv->status & RAID)

View File

@ -135,7 +135,7 @@ Volume type: (m)irrored, (M)irrored without initial sync, (o)rigin,
(s)napshot, merging (S)napshot, (p)vmove, (v)irtual, (s)napshot, merging (S)napshot, (p)vmove, (v)irtual,
mirror or raid (i)mage, mirror or raid (I)mage out-of-sync, mirror (l)og device, mirror or raid (i)mage, mirror or raid (I)mage out-of-sync, mirror (l)og device,
under (c)onversion, thin (V)olume, (t)hin pool, (T)hin pool data, raid or under (c)onversion, thin (V)olume, (t)hin pool, (T)hin pool data, raid or
thin pool m(e)tadata thin pool m(e)tadata or pool metadata spare.
.IP 2 3 .IP 2 3
Permissions: (w)riteable, (r)ead-only, (R)ead-only activation of non-read-only Permissions: (w)riteable, (r)ead-only, (R)ead-only activation of non-read-only
volume volume