mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
thin: report o as volume type for external origin
Reuse 'o' attr for lvs report also for external origin.
This commit is contained in:
parent
7151ede767
commit
c0290489c3
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.99 -
|
Version 2.02.99 -
|
||||||
===================================
|
===================================
|
||||||
|
Report lvs volume type 'o' also for external origin volumes.
|
||||||
Report lvs target type 't' only for thin pools and thin volumes.
|
Report lvs target type 't' only for thin pools and thin volumes.
|
||||||
Fix test for active snapshot in cluster before resizing it.
|
Fix test for active snapshot in cluster before resizing it.
|
||||||
Report backtrace from dump filter error path.
|
Report backtrace from dump filter error path.
|
||||||
|
@ -534,7 +534,7 @@ char *lv_attr_dup(struct dm_pool *mem, const struct logical_volume *lv)
|
|||||||
else if (lv->status & CONVERTING)
|
else if (lv->status & CONVERTING)
|
||||||
repstr[0] = 'c';
|
repstr[0] = 'c';
|
||||||
/* Origin takes precedence over mirror and thin volume */
|
/* Origin takes precedence over mirror and thin volume */
|
||||||
else if (lv_is_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->status & RAID)
|
else if (lv->status & RAID)
|
||||||
repstr[0] = (lv->status & LV_NOTSYNCED) ? 'R' : 'r';
|
repstr[0] = (lv->status & LV_NOTSYNCED) ? 'R' : 'r';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user