mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
activation: retry cleanup deactivation
Enable 'retry' deactivation also in 'cleanup' phase. It shouldn't be mostly needed - however udev now produces more and more completelny non-synchronizable device opens, so even for orphan devices we can't easily predict where udevd opens devices. So it's more preferable here to log error about device being open and retry clean, but let the command proceed.
This commit is contained in:
parent
1824a781db
commit
2f260c9909
@ -1,5 +1,6 @@
|
||||
Version 2.02.107 -
|
||||
==================================
|
||||
Use retry_deactivation also when cleaning orphan devices.
|
||||
Prompt when setting the VG cluster attr if the cluster is not setup.
|
||||
Allow --yes to skip prompt in vgextend (worked only with -f).
|
||||
Don't use name mangling for LVM - it never uses dm names with wrong char set.
|
||||
|
@ -2816,6 +2816,8 @@ static int _tree_action(struct dev_manager *dm, struct logical_volume *lv,
|
||||
/* Only process nodes with uuid of "LVM-" plus VG id. */
|
||||
switch(action) {
|
||||
case CLEAN:
|
||||
if (retry_deactivation())
|
||||
dm_tree_retry_remove(root);
|
||||
/* Deactivate any unused non-toplevel nodes */
|
||||
if (!_clean_tree(dm, root, laopts->origin_only ? dlid : NULL))
|
||||
goto_out;
|
||||
|
Loading…
Reference in New Issue
Block a user