1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00
lvm2/lib/format_text
Alasdair G Kergon 52fd66210b metadata: Avoid accessing ignored metadata.
When an ignored metadata area gets flagged for use again, make sure the
code doesn't try to parse its old metadata.  Firstly by trying to detect
this situation and skipping the read (while still remembering the
position reached in the circular buffer), and secondly by clearing the
invalid live metadata location on disk as a precaution when subsequently
writing out the precommitted metadata.

Problems showed up when a metadata area in one VG got moved to
another VG in ignored state (still holding metadata for the original
VG) and then later got brought into use in the new VG - only the header
should be read in this case, not any of the metadata content.
2017-10-27 22:53:43 +01:00
..
archive.c doc: change fsf address 2016-01-21 12:11:37 +01:00
archiver.c backup: show warning once per command 2016-12-18 19:38:30 +01:00
archiver.h vgcfgrestore: use lvmetad disabled state 2016-06-20 11:19:49 -05:00
export.c cleanup: add braces in macro 2017-07-20 11:18:29 +02:00
flags.c replicator: remove the code 2017-10-13 16:20:42 -05:00
format-text.c metadata: Avoid accessing ignored metadata. 2017-10-27 22:53:43 +01:00
format-text.h cov: declaration matching 2016-12-11 23:24:19 +01:00
import_vsn1.c cleanup: add braces in macro 2017-07-20 11:18:29 +02:00
import-export.h tidy: declaration names match implementation 2017-07-20 19:16:41 +02:00
import.c config: parse config tree without dup node checking if it's metadata tree 2016-09-21 18:16:05 +02:00
layout.h metadata: introduce PV_EXT_USED flag and bump PV_HEADER_EXTENSION_VSN 2016-02-15 12:44:46 +01:00
text_export.h coverity: fix possible resource leak of descendants_buffer in _print_historical_lv fn 2016-05-31 09:36:58 +02:00
text_import.h doc: change fsf address 2016-01-21 12:11:37 +01:00
text_label.c lvmcache: check for lvmcache_foreach_mda return code 2017-08-22 10:23:31 +02:00