1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

snapshot: local activation for clear COW device

To clear snapshot cow device in cluster enforce local
activation here.
This commit is contained in:
Zdenek Kabelac 2013-07-18 16:20:48 +02:00
parent b5dfe4bec2
commit 7b4b97b731
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.99 - Version 2.02.99 -
=================================== ===================================
Use local activation for clearing snapshot COW device.
Add lvm2-activation-net systemd unit to activate LVs on net-attached storage. Add lvm2-activation-net systemd unit to activate LVs on net-attached storage.
Release memory allocated with _cached_info(). Release memory allocated with _cached_info().
Add whole log_lv and metadata_lv sub volumes when creating partial tree. Add whole log_lv and metadata_lv sub volumes when creating partial tree.

View File

@ -5750,7 +5750,7 @@ static struct logical_volume *_lv_create_an_lv(struct volume_group *vg, struct l
} }
} }
} else if (lp->snapshot) { } else if (lp->snapshot) {
if (!activate_lv_excl(cmd, lv)) { if (!activate_lv_local(cmd, lv)) {
log_error("Aborting. Failed to activate snapshot " log_error("Aborting. Failed to activate snapshot "
"exception store."); "exception store.");
goto revert_new_lv; goto revert_new_lv;