1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/label
David Teigland e035e32350 scan: retry reading metadata on error
If label_scan encounters bad vg metadata, invalidate
bcache data for the device and reread the mda_header
and metadata text back to back.  With concurrent commands
modifying large metadata, it's possible that the entire
metadata area can be rewritten in the time between a
command reading the mda_header and reading the metadata
text that the header points to.  Since the label_scan
is just assembling an initial overview of devices, it
doesn't use locking to serialize with other commands
that may be modifying the vg metadata at the same time.
2021-07-06 10:10:23 -05:00
..
hints.c debug: drop stack from regular code flow 2021-03-15 11:13:24 +01:00
hints.h hints: keep strings aligned in structure 2021-03-08 15:33:15 +01:00
label.c scan: retry reading metadata on error 2021-07-06 10:10:23 -05:00
label.h scan: retry reading metadata on error 2021-07-06 10:10:23 -05:00