master - flags: restore same logic with MISSING
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=d1ac6108c39ff8a3496624508a0e709c503d7d9f Commit: d1ac6108c39ff8a3496624508a0e709c503d7d9f Parent: 4141409eb09e78aef030346995f1722fb40956d8 Author: Zdenek Kabelac <[email protected]> AuthorDate: Tue May 30 16:12:45 2017 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Tue May 30 16:16:29 2017 +0200
flags: restore same logic with MISSING
Since lvmetad is using 'MISSING' in status for 'another' purpose, we need to support ATM also flag get from this place.
Until fixed better - we accept both flags - alhough lvm2 will only print in flags.
--- lib/format_text/flags.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
lib/format_text/flags.c +1 -0
@@ -47,6 +47,7 @@ static const struct flag _pv_flags[] = { {ALLOCATABLE_PV, "ALLOCATABLE", STATUS_FLAG}, {EXPORTED_VG, "EXPORTED", STATUS_FLAG}, {MISSING_PV, "MISSING", COMPATIBLE_FLAG}, + {MISSING_PV, "MISSING", STATUS_FLAG}, {UNLABELLED_PV, NULL, 0}, {0, NULL, 0} };