1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00
lvm2/lib
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
..
activate config: {thin,cache}_{check,repair}_options are never undefined 2015-07-14 10:13:41 +02:00
cache vgcreate: improve checks for existing global lock 2015-07-29 14:27:32 -05:00
cache_segtype cleanup: indent 2015-08-12 14:33:16 +02:00
commands vgremove: fix locking when lvmlockd global lock is removed 2015-08-10 13:04:11 -05:00
config cache: use undefined settings for cache_policy 2015-08-17 11:25:03 +02:00
datastruct datastruct: Add str_list_add_list. 2015-03-26 18:30:37 +00:00
device cache: fix regression causing some PVs to bypass filters 2015-07-29 10:19:12 +02:00
display libdm: Add dm_size_to_string to libdevmapper. 2015-07-27 21:30:20 +01:00
error segtype: drop cmdcontex pointer 2014-10-30 23:58:49 +01:00
filters config: use timestamp with nanosecond precision 2015-03-18 13:42:56 +01:00
format1 coverity: check vg->lvm1_system_id is not NULL before calling strncmp with that 2015-08-04 10:35:31 +02:00
format_pool cache: Store metadata size and checksum. 2015-03-18 23:43:02 +00:00
format_text lvmcache: add lock_type to VG summary and info structs 2015-07-29 14:27:32 -05:00
freeseg segtype: drop cmdcontex pointer 2014-10-30 23:58:49 +01:00
label cache: Store metadata size and checksum. 2015-03-18 23:43:02 +00:00
locking vgremove: fix locking when lvmlockd global lock is removed 2015-08-10 13:04:11 -05:00
log coverity: fix cppcheck warnings 2015-08-04 09:33:55 +02:00
lvmpolld lvmpolld: Fix segfault on 32 bit architectures 2015-07-10 16:16:57 +02:00
metadata thin: restore transaction_id handling 2015-08-17 11:25:03 +02:00
mirror macros: Wrap PRI with FMT. 2015-07-06 15:09:17 +01:00
misc dmsetup: use timerfd for interval timing if available 2015-08-12 15:09:57 +01:00
mm config: use find_config_tree_array for all arrays 2015-07-15 10:52:23 +02:00
properties report: add support for time (basic) 2015-06-30 15:15:10 +02:00
raid cleanup: drop unused header file 2015-07-15 13:10:22 +02:00
replicator macros: Wrap PRI with FMT. 2015-07-06 15:09:17 +01:00
report cache: api update 2015-08-12 14:32:24 +02:00
snapshot segtype: add SEG_ONLY_EXCLUSIVE flag 2014-11-10 22:05:48 +01:00
striped segtype: drop cmdcontex pointer 2014-10-30 23:58:49 +01:00
thin thin: restore transaction_id handling 2015-08-17 11:25:03 +02:00
unknown segtype: drop cmdcontex pointer 2014-10-30 23:58:49 +01:00
uuid macros: Wrap PRI with FMT. 2015-07-06 15:09:17 +01:00
zero cleanup: remove unused headers 2014-11-13 17:49:42 +01:00
Makefile.in libdm: Add dm_timestamp functions. 2015-07-29 19:21:07 +01:00