mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
6407d184d1
Refactor the recent metadata-reading optimisation patches. Remove the recently-added cache fields from struct labeller and struct format_instance. Instead, introduce struct lvmcache_vgsummary to wrap the VG information that lvmcache holds and add the metadata size and checksum to it. Allow this VG summary information to be looked up by metadata size + checksum. Adjust the debug log messages to make it clear when this shortcut has been successful. (This changes the optimisation slightly, and might be extendable further.) Add struct cached_vg_fmtdata to format-specific vg_read calls to preserve state alongside the VG across separate calls and indicate if the details supplied match, avoiding the need to read and process the VG metadata again. |
||
---|---|---|
.. | ||
.exported_symbols | ||
disk_rep.c | ||
disk_rep.h | ||
format_pool.c | ||
format_pool.h | ||
import_export.c | ||
Makefile.in | ||
pool_label.c | ||
pool_label.h | ||
sptype_names.h |