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 b876dbfc24 scan: move metadata vgname check
There have been two separate checks for metadata
validity: first that the metadata text begins with
a valid VG name, and second the checksum of the
metadata text.  These happen in different places,
which means there have been two separate error paths
for invalid metadata.  This also causes large metadata
to be read in multiple parts, the first part is read
just to check the vgname, and then remaining parts are
read later when the full metadata is needed.

This patch moves the vg name verification so it's
done just before the checksum verification, which
results in a single error path for invalid metadata,
and causes the entire metadata to be read together
rather that in parts from different parts of the code.
2021-07-06 10:10:23 -05:00
..
archive.c Merge branch 'master' into 2018-05-11-fork-libdm 2018-06-01 13:04:12 +01:00
archiver.c backup: automatically store data on vg_unlock 2021-06-09 14:56:13 +02:00
archiver.h build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
export.c cleanup: easier print of historical lv 2021-03-10 01:11:52 +01:00
flags.c Add metadata-based autoactivation property for VG and LV 2021-04-07 15:32:49 -05:00
format-text.c scan: move metadata vgname check 2021-07-06 10:10:23 -05:00
format-text.h vgck: fix updatemetadata writing different descriptions 2019-10-11 12:57:32 -05:00
import_vsn1.c cov: use correct enum type 2021-04-23 23:00:55 +02:00
import-export.h metadata: add vg_from_config_tree 2019-11-27 11:13:47 -06:00
import.c vg_read: reuse already parsed config tree 2021-03-08 15:30:18 +01: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 scan: retry reading metadata on error 2021-07-06 10:10:23 -05:00