From 22eabe5eab54a6a190c2e18ab3281ee7ce52c99d Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Thu, 11 May 2006 20:17:17 +0000 Subject: [PATCH] M for unsynced mirror --- lib/report/report.c | 9 ++++++--- man/lvs.8 | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/report/report.c b/lib/report/report.c index 3b1c488f9..4a3150d3f 100644 --- a/lib/report/report.c +++ b/lib/report/report.c @@ -333,9 +333,12 @@ static int _lvstatus_disp(struct report_handle *rh, struct field *field, if (lv->status & PVMOVE) repstr[0] = 'p'; - else if (lv->status & MIRRORED) - repstr[0] = 'm'; - else if (lv->status & MIRROR_IMAGE) + else if (lv->status & MIRRORED) { + if (lv->status & MIRROR_NOTSYNCED) + repstr[0] = 'M'; + else + repstr[0] = 'm'; + }else if (lv->status & MIRROR_IMAGE) repstr[0] = 'i'; else if (lv->status & MIRROR_LOG) repstr[0] = 'l'; diff --git a/man/lvs.8 b/man/lvs.8 index 57051eb69..c8a9103d6 100644 --- a/man/lvs.8 +++ b/man/lvs.8 @@ -44,7 +44,7 @@ can also be chosen. The lv_attr bits are: .RS .IP 1 3 -Volume type: (m)irrored, (o)rigin, (p)vmove, (s)napshot, +Volume type: (m)irrored, (M)irrored without initial sync, (o)rigin, (p)vmove, (s)napshot, invalid (S)napshot, (v)irtual .IP 2 3 Permissions: (w)riteable, (r)ead-only