1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 20:25:52 +03:00
lvm2/lib/metadata
Zdenek Kabelac 79ea81b8a8 thin: restore transaction_id handling
Revert back to already existing behavior which has been slightly
modified by a900d150e4.

At the end however it seem to be equal to change TID right with first
metadata write.

Existing code missed handling for 'unused' thin-pool which would
require to also check empty message list for TID==0.

So with the fix we now again preserve 'active' thin-pool volume
when first thin volume is created - this property was lost and caused
problems in cluster, where the lock was hold, but volume was no longer
active on the node.

Another missing part was the proper support for already increased,
but unfinished TID change.

So going back here with existing logic -

TID is increased with first MDA update.

Code allows start with either same TID or (TID-1).

If there are messages, TID must be lower by 1 for sending,
otherwise messages were already posted.
2015-08-17 11:25:03 +02:00
..
cache_manip.c cache: api update 2015-08-12 14:32:24 +02:00
lv_alloc.h thin: simplify thin volume creation 2014-10-26 18:37:13 +01:00
lv_manip.c cleanup: indent 2015-08-12 14:33:16 +02:00
lv.c cache: api update 2015-08-12 14:32:24 +02:00
lv.h Add lvmlockd 2015-07-02 15:42:26 -05:00
merge.c cache: add more validation 2015-08-12 14:33:14 +02:00
metadata-exported.h cache: api update 2015-08-12 14:32:24 +02:00
metadata.c vgchange/lvchange: enforce the shared VG lock from lvmlockd 2015-07-17 15:35:34 -05:00
metadata.h thin: check for overprovisioning 2015-07-03 16:13:14 +02:00
mirror.c macros: Wrap PRI with FMT. 2015-07-06 15:09:17 +01:00
pool_manip.c pool: fix typo in error message: then -> than 2014-12-04 09:18:16 +01:00
pv_alloc.h cleanup: self compilable headers 2013-12-12 13:28:19 +01:00
pv_manip.c pvremove: Avoid metadata re-reads & related error messages. 2015-01-06 14:27:30 +01:00
pv_map.c raid_manip: v2 fix multi-segment misallocation on 'lvconvert --repair' 2015-01-16 13:44:16 +01:00
pv_map.h Track unreserved space for all alloc policies and then permit NORMAL to place 2012-02-01 02:10:45 +00:00
pv.c pv_vg_name: do not expose internal orphans to lvm2 users 2014-03-19 00:57:59 +01:00
pv.h cleanup: self compilable headers 2013-12-12 13:28:19 +01:00
raid_manip.c Add lvmlockd 2015-07-02 15:42:26 -05:00
replicator_manip.c macros: Wrap PRI with FMT. 2015-07-06 15:09:17 +01:00
segtype.c clean: remove unneeded assign 2013-06-17 09:34:56 +02:00
segtype.h cache: detect smq policy presence 2015-08-12 14:11:17 +02:00
snapshot_manip.c cleanup: fix typo and use vg mempool 2014-09-24 10:54:47 +02:00
thin_manip.c thin: restore transaction_id handling 2015-08-17 11:25:03 +02:00
vg.c Add lvmlockd 2015-07-02 15:42:26 -05:00
vg.h Add lvmlockd 2015-07-02 15:42:26 -05:00