]> sourceware.org Git - lvm2.git/commitdiff
flags: restore same logic with MISSING
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 30 May 2017 14:12:45 +0000 (16:12 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 30 May 2017 14:16:29 +0000 (16:16 +0200)
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

index 04896f469637934ba81d13ea0204aac220bb9bf8..2b934da2c6856f9df5972266b310ac2c8569aa9c 100644 (file)
@@ -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}
 };
This page took 0.029151 seconds and 5 git commands to generate.