From e189a84f57cb82bd98ecb68e3a0eaeedf8b2c15b Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Wed, 29 Jun 2011 14:56:33 +0000 Subject: [PATCH] Append 'm' attribute to pv_attr for missing PVs. --- WHATS_NEW | 1 + lib/metadata/pv.c | 1 + man/pvs.8.in | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW b/WHATS_NEW index 27d3e9ee2..880dc7777 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.86 - ================================= + Append 'm' attribute to pv_attr for missing PVs. Annotate CLVMD_CMD_SYNC_NAMES in decode_cmd. Remove enforcement of udev verification when using non-standard /dev location. Fix to preserve exclusive activation of mirror while up-converting. diff --git a/lib/metadata/pv.c b/lib/metadata/pv.c index 7386cb1c4..06920e587 100644 --- a/lib/metadata/pv.c +++ b/lib/metadata/pv.c @@ -197,6 +197,7 @@ char *pv_attr_dup(struct dm_pool *mem, const struct physical_volume *pv) repstr[0] = (pv->status & ALLOCATABLE_PV) ? 'a' : '-'; repstr[1] = (pv->status & EXPORTED_VG) ? 'x' : '-'; + repstr[2] = (pv->status & MISSING_PV) ? 'm' : '-'; return repstr; } diff --git a/man/pvs.8.in b/man/pvs.8.in index a5e1382cc..8a24eb5a8 100644 --- a/man/pvs.8.in +++ b/man/pvs.8.in @@ -59,7 +59,7 @@ pvseg_start, and pvseg_size. .IP With --segments, any "pvseg_" prefixes are optional; otherwise any "pv_" prefixes are optional. Columns mentioned in \fBvgs (8)\fP can also -be chosen. The pv_attr bits are: (a)llocatable and e(x)ported. +be chosen. The pv_attr bits are: (a)llocatable, e(x)ported and (m)issing. .TP .I \-\-segments Produces one line of output for each contiguous allocation of space on each