1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

M for unsynced mirror

This commit is contained in:
Alasdair Kergon 2006-05-11 20:17:17 +00:00
parent b69ba36c2d
commit 22eabe5eab
2 changed files with 7 additions and 4 deletions

View File

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

View File

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