mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
Internal-only metadata flag support.
This commit is contained in:
parent
224565478c
commit
ea601b75e2
@ -1,5 +1,7 @@
|
|||||||
Version 2.00.16 -
|
Version 2.00.16 -
|
||||||
=============================
|
=============================
|
||||||
|
Internal-only metadata flag support.
|
||||||
|
Basic checking for presence of device-mapper targets.
|
||||||
Separate out polldaemon.
|
Separate out polldaemon.
|
||||||
Revise internal locking semantics.
|
Revise internal locking semantics.
|
||||||
Move find_pv_by_name to library.
|
Move find_pv_by_name to library.
|
||||||
|
@ -93,19 +93,21 @@ int print_flags(uint32_t status, int type, char *buffer, size_t size)
|
|||||||
|
|
||||||
for (f = 0; flags[f].mask; f++) {
|
for (f = 0; flags[f].mask; f++) {
|
||||||
if (status & flags[f].mask) {
|
if (status & flags[f].mask) {
|
||||||
|
status &= ~flags[f].mask;
|
||||||
|
|
||||||
|
/* Internal-only flag? */
|
||||||
|
if (!flags[f].description)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (!first) {
|
if (!first) {
|
||||||
if (!emit_to_buffer(&buffer, &size, ", "))
|
if (!emit_to_buffer(&buffer, &size, ", "))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
} else
|
} else
|
||||||
first = 0;
|
first = 0;
|
||||||
|
|
||||||
if (flags[f].description &&
|
if (!emit_to_buffer(&buffer, &size, "\"%s\"",
|
||||||
!emit_to_buffer(&buffer, &size, "\"%s\"",
|
flags[f].description))
|
||||||
flags[f].description))
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
status &= ~flags[f].mask;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user