1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/format_text
David Teigland 939b4bc587 handle bad metadata text in vg_read path
Corrupt metadata text (with good mda header) was being handled
in the label_scan phase, but not in the vg_read phase.  This
was sufficient because metadata areas would always be read and
checksummed during label_scan (metadata parsing was skipped
previously as an optimization.)

This changed with the optimization in
commit 61a6f9905e
"metadata: optimize reading metadata copies in scan"

Now, some metadata areas will not be read and checksummed
at all during the label_scan phase, only during the vg_read
phase.  This means that bad metadata text may first be detected
in the vg_read phase.  So, add equivalent bad metadata handling
to the vg_read path to match the label_scan path.
2021-09-28 15:17:43 -05:00
..
archive.c make: build without versionsort 2021-09-27 18:56:14 +02:00
archiver.c gcc-fanalyzer: drop zeroing of pointers 2021-09-20 14:18:13 +02:00
archiver.h build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
export.c metadata: remember parsing size of VG metadata 2021-09-27 18:49:41 +02:00
flags.c Add metadata-based autoactivation property for VG and LV 2021-04-07 15:32:49 -05:00
format-text.c handle bad metadata text in vg_read path 2021-09-28 15:17:43 -05:00
format-text.h vgck: fix updatemetadata writing different descriptions 2019-10-11 12:57:32 -05:00
import_vsn1.c cov: clean up pvid and vgid usage 2021-08-16 11:31:15 -05:00
import-export.h metadata: add vg_from_config_tree 2019-11-27 11:13:47 -06:00
import.c handle bad metadata text in vg_read path 2021-09-28 15:17:43 -05:00
layout.h gcc: zero-sized array to fexlible array C99 2020-09-01 17:57:50 +02:00
text_export.h cleanup: easier print of historical lv 2021-03-10 01:11:52 +01:00
text_import.h doc: change fsf address 2016-01-21 12:11:37 +01:00
text_label.c logging: messages for found metadata 2021-08-20 14:51:09 -05:00