1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 03:27:58 +03:00
lvm2/lib/format_pool
Alasdair G Kergon 6407d184d1 cache: Store metadata size and checksum.
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.
2015-03-18 23:43:02 +00:00
..
.exported_symbols Add read-only GFS pool support. 2004-06-07 19:10:21 +00:00
disk_rep.c cleanup: drop unused headers 2013-06-16 00:07:32 +02:00
disk_rep.h Remove unnecessary parameter from import_pool_pvs(). 2010-04-13 17:25:13 +00:00
format_pool.c cache: Store metadata size and checksum. 2015-03-18 23:43:02 +00:00
format_pool.h Fix vgreduce to use vg_split_mdas to check sufficient mdas remain. 2008-04-08 12:49:21 +00:00
import_export.c thin: simplify thin volume creation 2014-10-26 18:37:13 +01:00
Makefile.in Install plugins to subdirs 2010-05-06 10:07:46 +00:00
pool_label.c labeller: Make the use of "private" as "fmt" explicit. 2013-11-17 21:41:27 +01:00
pool_label.h Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00
sptype_names.h Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00