1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Internal-only metadata flag support.

This commit is contained in:
Alasdair Kergon 2004-05-05 18:15:47 +00:00
parent 224565478c
commit ea601b75e2
2 changed files with 11 additions and 7 deletions

View File

@ -1,5 +1,7 @@
Version 2.00.16 -
=============================
Internal-only metadata flag support.
Basic checking for presence of device-mapper targets.
Separate out polldaemon.
Revise internal locking semantics.
Move find_pv_by_name to library.

View File

@ -93,19 +93,21 @@ int print_flags(uint32_t status, int type, char *buffer, size_t size)
for (f = 0; flags[f].mask; f++) {
if (status & flags[f].mask) {
status &= ~flags[f].mask;
/* Internal-only flag? */
if (!flags[f].description)
continue;
if (!first) {
if (!emit_to_buffer(&buffer, &size, ", "))
return 0;
} else
first = 0;
if (flags[f].description &&
!emit_to_buffer(&buffer, &size, "\"%s\"",
flags[f].description))
if (!emit_to_buffer(&buffer, &size, "\"%s\"",
flags[f].description))
return 0;
status &= ~flags[f].mask;
}
}