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 aecf542126 metadata: prevent writing beyond metadata area
lvm uses a bcache block size of 128K.  A bcache block
at the end of the metadata area will overlap the PEs
from which LVs are allocated.  How much depends on
alignments.  When lvm reads and writes one of these
bcache blocks to update VG metadata, it can also be
reading and writing PEs that belong to an LV.

If these overlapping PEs are being written to by the
LV user (e.g. filesystem) at the same time that lvm
is modifying VG metadata in the overlapping bcache
block, then the user's updates to the PEs can be lost.

This patch is a quick hack to prevent lvm from writing
past the end of the metadata area.
2018-10-29 16:53:17 -05:00
..
archive.c Merge branch 'master' into 2018-05-11-fork-libdm 2018-06-01 13:04:12 +01:00
archiver.c Remove lvmetad 2018-07-11 11:26:42 -05:00
archiver.h build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
export.c device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
flags.c vdo: introduce segment types and manip functions 2018-07-09 15:28:35 +02:00
format-text.c metadata: prevent writing beyond metadata area 2018-10-29 16:53:17 -05:00
format-text.h build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
import_vsn1.c Remove lvmetad 2018-07-11 11:26:42 -05:00
import-export.h build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
import.c Remove lvmetad 2018-07-11 11:26:42 -05:00
layout.h Remove independent metadata areas 2018-06-13 12:25:19 -05: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 device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00