1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/metadata
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
..
cache_manip.c cachevol: drop no longer needed functions 2019-10-14 15:20:25 +02:00
lv_alloc.h build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
lv_manip.c cachevol: use lv_cache_remove 2019-10-14 15:20:25 +02:00
lv.c writecache: use dm suffixes and lv attributes 2019-09-20 14:08:51 -05:00
lv.h Remove unused clvm variations for active LVs 2018-06-07 16:17:04 +01:00
merge.c lvconvert: cachevol LV can have multiple segments 2019-09-20 09:59:37 -05:00
metadata-exported.h cache: change cachevol flags for backward compat 2019-10-15 09:05:52 -05:00
metadata.c vgck: let updatemetadata repair mismatched metadata 2019-10-11 12:57:39 -05:00
metadata.h vgck: let updatemetadata repair mismatched metadata 2019-10-11 12:57:39 -05:00
mirror.c pvmove: remove some cmirror related code 2019-10-11 11:31:42 -05:00
pool_manip.c cache: change cachevol flags for backward compat 2019-10-15 09:05:52 -05:00
pv_alloc.h doc: change fsf address 2016-01-21 12:11:37 +01:00
pv_manip.c pvresize: add missing return 2018-06-08 14:36:56 +02:00
pv_map.c build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
pv_map.h build: Don't generate symlinks in include/ dir 2018-05-14 10:30:20 +01:00
pv.c lvmcache: renaming functions and variables 2019-08-16 13:26:11 -05:00
pv.h metadata: import device name hint from metadata 2019-09-30 11:38:10 -05:00
raid_manip.c cleanup: use unsigned type 2019-05-03 13:17:22 +02:00
segtype.c segtype: add linear 2018-06-05 16:23:18 +02:00
segtype.h Add dm-writecache support 2018-11-06 14:18:41 -06:00
snapshot_manip.c lv_manip: add synchronizations 2019-08-26 15:32:19 +02:00
takeover_matrix.h lvconvert: add infrastructure for RaidLV reshaping support 2017-02-24 05:20:58 +01:00
thin_manip.c lv_manip: add synchronizations 2019-08-26 15:32:19 +02:00
vdo_manip.c vdo: introduce get_vdo_write_policy_name 2019-10-04 17:31:55 +02:00
vg.c improve reading and repairing vg metadata 2019-06-07 15:54:04 -05:00
vg.h metadata: include description with command in metadata areas 2019-06-20 16:09:05 -05:00
writecache_manip.c writecache: move code into new file 2019-09-24 15:51:05 -05:00