1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-06 17:18:29 +03:00
lvm2/lib/format_text
Zdenek Kabelac 797265f424 export: optimise flag reading and printing
When parsing list of flags, we can use 'alphabetically'
sorted array and use 'bsearch()' to look for particular bit.

When creating string representation of flags, we can
reduce some unnecessary bit lookups by join those flags
without string description together, so there is no need
to check for those individual 'bits', but still maintaining
the bit validation.

Also exit the printing loop early, if there are no any more
status bit present.
2024-10-29 22:44:32 +01:00
..
archive.c cleanup: unlink passes with ENOENT 2024-05-01 10:55:17 +02:00
archiver.c vgcfgrestore: validate complete VG 2024-10-23 20:16:14 +02:00
archiver.h build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
export.c export: pass buffer size as parameter 2024-10-29 22:44:32 +01:00
flags.c export: optimise flag reading and printing 2024-10-29 22:44:32 +01:00
format-text.c export: pass buffer size as parameter 2024-10-29 22:44:32 +01:00
format-text.h vgck: fix updatemetadata writing different descriptions 2019-10-11 12:57:32 -05:00
import_vsn1.c lv_manip: init major minor in alloc_lv 2024-10-28 20:07:37 +01:00
import-export.h read_lvflags: keep flag reading focused on flags 2024-10-23 20:16:14 +02:00
import.c config: use dm_config_parse_only_section 2024-10-22 19:36:00 +02:00
layout.h cleanup: typos in comments 2024-08-30 16:51:15 +02:00
text_export.h cleanup: easier print of historical lv 2021-03-10 01:11:52 +01:00
text_import.h metadata: use radix tree to find lv_names 2024-10-24 17:38:09 +02:00
text_label.c cleanup: some missed public symbols static 2024-05-13 12:58:19 +02:00