mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Fix lvdisplay to show all mirror destinations.
This commit is contained in:
parent
d5aeb4bc34
commit
f9a8e6ee3b
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.00 -
|
Version 2.02.00 -
|
||||||
===================================
|
===================================
|
||||||
|
Fix lvdisplay to show all mirror destinations.
|
||||||
Replacement suspend code using libdevmapper dependency tree.
|
Replacement suspend code using libdevmapper dependency tree.
|
||||||
Add DEFS to make.tmpl.
|
Add DEFS to make.tmpl.
|
||||||
Use dm_is_dm_major instead of local copy.
|
Use dm_is_dm_major instead of local copy.
|
||||||
|
@ -44,6 +44,7 @@ static const char *_name(const struct lv_segment *seg)
|
|||||||
static void _display(const struct lv_segment *seg)
|
static void _display(const struct lv_segment *seg)
|
||||||
{
|
{
|
||||||
const char *size;
|
const char *size;
|
||||||
|
uint32_t s;
|
||||||
|
|
||||||
log_print(" Mirrors\t\t%u", seg->area_count);
|
log_print(" Mirrors\t\t%u", seg->area_count);
|
||||||
log_print(" Mirror size\t\t%u", seg->area_len);
|
log_print(" Mirror size\t\t%u", seg->area_len);
|
||||||
@ -59,8 +60,9 @@ static void _display(const struct lv_segment *seg)
|
|||||||
|
|
||||||
log_print(" Mirror original:");
|
log_print(" Mirror original:");
|
||||||
display_stripe(seg, 0, " ");
|
display_stripe(seg, 0, " ");
|
||||||
log_print(" Mirror destination:");
|
log_print(" Mirror destinations:");
|
||||||
display_stripe(seg, 1, " ");
|
for (s = 1; s < seg->area_count; s++)
|
||||||
|
display_stripe(seg, s, " ");
|
||||||
log_print(" ");
|
log_print(" ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user