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 91ee025d5b cache: change cachevol flags for backward compat
A cachevol LV had the CACHE_VOL status flag in metadata,
and the cache LV using it had no new flag.  This caused
problems if the new metadata was used by an old version
of lvm.  An old version of lvm would have two problems
processing the new metadata:

. The old lvm would return an error when reading the VG
  metadata when it saw the unknown CACHE_VOL status flag.

. The old lvm would return an error when reading the VG
  metadata because it would not find an expected cache pool
  attached to the cache LV (since the cache LV had a
  cachevol attached instead.)

Change the use of flags:

. Change the CACHE_VOL flag to be a COMPATIBLE flag (instead
  of a STATUS flag) so that old versions will not fail when
  they see it.

. When a cache LV is using a cachevol, the cache LV gets
  a new SEGTYPE flag CACHE_USES_CACHEVOL.  This flag is
  appended to the segtype name, so that old lvm versions
  will fail to use the LV because of an unknown segtype,
  as opposed to failing to read the VG.
2019-10-15 09:05:52 -05:00
..
archive.c Merge branch 'master' into 2018-05-11-fork-libdm 2018-06-01 13:04:12 +01:00
archiver.c md component detection addition in vg_read 2019-08-16 13:24:34 -05:00
archiver.h build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
export.c metadata: extend writes to zero space 2019-07-12 15:00:12 -05:00
flags.c cache: change cachevol flags for backward compat 2019-10-15 09:05:52 -05:00
format-text.c vgck: fix updatemetadata writing different descriptions 2019-10-11 12:57:32 -05:00
format-text.h vgck: fix updatemetadata writing different descriptions 2019-10-11 12:57:32 -05:00
import_vsn1.c scan: add PV summary info to lvmcache 2019-09-30 11:38:10 -05:00
import-export.h metadata: extend writes to zero space 2019-07-12 15:00:12 -05:00
import.c md component detection addition in vg_read 2019-08-16 13:24:34 -05:00
layout.h add flags to keep track of bad metadata 2019-06-07 15:54:04 -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 vgck: let updatemetadata repair mismatched metadata 2019-10-11 12:57:39 -05:00