master - snapshot: local activation for clear COW device
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=7b4b97b731053ab2780d5ffdce5fc1c3e0626c2a Commit: 7b4b97b731053ab2780d5ffdce5fc1c3e0626c2a Parent: b5dfe4bec2c5eb24559f650da47678ad1de527b6 Author: Zdenek Kabelac <[email protected]> AuthorDate: Thu Jul 18 16:20:48 2013 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Thu Jul 18 18:22:43 2013 +0200
snapshot: local activation for clear COW device
To clear snapshot cow device in cluster enforce local activation here.
--- WHATS_NEW | 1 + lib/metadata/lv_manip.c | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ 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. Release memory allocated with _cached_info(). Add whole log_lv and metadata_lv sub volumes when creating partial tree.
lib/metadata/lv_manip.c +1 -1
@@ -5750,7 +5750,7 @@ static struct logical_volume *_lv_create_an_lv(struct volume_group *vg, struct l } } }else if (lp->snapshot) { -if (!activate_lv_excl (cmd, lv)) { +if (!activate_lv_local (cmd, lv)) {log_error ("Aborting. Failed to activate snapshot " "exception store." ); goto revert_new_lv;