1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/activate
Zdenek Kabelac d4c03cf7b2 mirror: fix flushing for mirror target
Fix regression caused by commit ba41ee1dc9.
The idea was to use no_flush for changed device only for thin volumes
and thin pools but also to merge this with change made in commit
844b009584.

However the resulting condition has caused misbehavior for the mirror
suspend - as that has been before the ONLY allowed target type
that could have been suspended with noflush.

Result was badly working repair for --type mirror that has been
passing 'flush' to the repaired mirror target whenever preload
wrongly set flush_required.

The origin code has required the flush_required to be set whenever
deivce size is changed.

Now it first detects if device size got smaller
'dm_tree_node_size_changed(root) < 0' - this requires flush.
Otherwise it checks device is not thin volume nor thin pool and its
size has changed (got bigger) and requires flush.

This mean upsize of thin-pool or thin volume will not require flush.
2016-04-06 11:31:02 +02:00
..
activate.c cleanup: debug message fix 2016-03-31 12:21:25 +02:00
activate.h activate: Use macros for target and module names. 2016-03-22 17:46:15 +00:00
dev_manager.c mirror: fix flushing for mirror target 2016-04-06 11:31:02 +02:00
dev_manager.h doc: change fsf address 2016-01-21 12:11:37 +01:00
fs.c doc: change fsf address 2016-01-21 12:11:37 +01:00
fs.h doc: change fsf address 2016-01-21 12:11:37 +01:00
targets.h doc: change fsf address 2016-01-21 12:11:37 +01:00