diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2011-09-22 17:39:56 +0000 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2011-09-22 17:39:56 +0000 |
commit | 9fa1d30a1c00ea147faa74bd4538bbc1038c4acf (patch) | |
tree | 5aad7b4c2fb648905395dd31e2c1018e303a503c /lib/activate | |
parent | 787200efd6095c61dc356fb85edc0bf6c94e2b71 (diff) | |
download | lvm2-9fa1d30a1c00ea147faa74bd4538bbc1038c4acf.tar.gz lvm2-9fa1d30a1c00ea147faa74bd4538bbc1038c4acf.tar.xz lvm2-9fa1d30a1c00ea147faa74bd4538bbc1038c4acf.zip |
Add activation/retry_deactivation to lvm.conf to retry deactivation of an LV.
Diffstat (limited to 'lib/activate')
-rw-r--r-- | lib/activate/dev_manager.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/activate/dev_manager.c b/lib/activate/dev_manager.c index b5b4b9ed..0a3c29c1 100644 --- a/lib/activate/dev_manager.c +++ b/lib/activate/dev_manager.c @@ -1782,6 +1782,8 @@ static int _tree_action(struct dev_manager *dm, struct logical_volume *lv, goto_out; break; case DEACTIVATE: + if (retry_deactivation()) + dm_tree_retry_remove(root); /* Deactivate LV and all devices it references that nothing else has open. */ r = dm_tree_deactivate_children(root, dlid, ID_LEN + sizeof(UUID_PREFIX) - 1); if (!r) |