1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib
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
..
activate cov: drop uneeded header files 2018-10-15 17:49:44 +02:00
cache Remove lvmetad 2018-07-11 11:26:42 -05:00
cache_segtype Merge branch '2018-06-04-data-structs' 2018-06-08 14:21:07 +01:00
commands cov: fix failing filter initialization 2018-10-15 17:49:44 +02:00
config config: Fix version for VDO 2018-10-11 11:06:23 +02:00
datastruct build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
device metadata: prevent writing beyond metadata area 2018-10-29 16:53:17 -05:00
display display: basic vdo segment lvdisplay and lvs support 2018-07-09 15:28:35 +02:00
error device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
filters cov: avoid selfrecursive inclusion of toolcontext.h 2018-10-15 17:49:44 +02:00
format_text metadata: prevent writing beyond metadata area 2018-10-29 16:53:17 -05:00
freeseg device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
label metadata: prevent writing beyond metadata area 2018-10-29 16:53:17 -05:00
locking cov: drop uneeded header files 2018-10-15 17:49:44 +02:00
log device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
lvmpolld device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
metadata metadata: prevent writing beyond metadata area 2018-10-29 16:53:17 -05:00
mirror cov: drop uneeded header files 2018-10-15 17:49:44 +02:00
misc vdo: component activation of VDO data LV 2018-07-09 15:28:35 +02:00
mm memlock: extend exception list 2018-07-02 10:24:20 +02:00
notify build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
properties build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
raid Merge branch '2018-06-04-data-structs' 2018-06-08 14:21:07 +01:00
report report: show empty lock_type for none 2018-06-15 14:14:39 -05:00
snapshot Merge branch '2018-06-04-data-structs' 2018-06-08 14:21:07 +01:00
striped device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
thin Merge branch '2018-06-04-data-structs' 2018-06-08 14:21:07 +01:00
unknown device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
uuid build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
vdo dmeventd: lvm vdo support 2018-07-09 15:29:16 +02:00
zero device_mapper: remove dbg_malloc. 2018-06-08 13:40:53 +01:00
Makefile.in Remove lvmetad 2018-07-11 11:26:42 -05:00