master - thin: replace is_active with send_messages
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=8ed0b6f312e0e9b5566934c5d30f79c1450fba2f Commit: 8ed0b6f312e0e9b5566934c5d30f79c1450fba2f Parent: 4af4241ba4f749ee64375e7e80fecf6bda67f1e8 Author: Zdenek Kabelac <[email protected]> AuthorDate: Thu Jan 17 10:35:27 2013 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Mon Feb 4 19:01:10 2013 +0100
thin: replace is_active with send_messages
Since is_active is only used for thinp
replace struct member with more meaningfulsend_messages flag
--- lib/activate/activate.h | 2 +- lib/activate/dev_manager.c | 3 +-- lib/thin/thin.c | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-)
lib/activate/activate.h +1 -1
@@ -35,7 +35,7 @@ struct lv_activate_opts {int origin_only;int no_merging;int real_pool; -int is_activate; +int send_messages;int skip_in_use;unsigned revert;unsigned read_only;
lib/activate/dev_manager.c +1 -2
@@ -2388,8 +2388,6 @@ static int _tree_action(struct dev_manager *dm, struct logical_volume *lv,char *dlid;int r =0 ; - laopts->is_activate = (action ==ACTIVATE ); -if (!(dtree =_create_partial_dtree (dm, lv, laopts->origin_only))) return_0;
@@ -2471,6 +2469,7 @@ out_no_root:int dev_manager_activate (struct dev_manager *dm,struct logical_volume *lv,struct lv_activate_opts *laopts) { + laopts->send_messages =1 ;if (!_tree_action (dm, lv, laopts,ACTIVATE )) return_0;
lib/thin/thin.c +1 -1
@@ -305,7 +305,7 @@ static int _thin_pool_add_target_line(struct dev_manager *dm,* Also transation_id is checked only when snapshot origin is active. * (This might change later) */ -if (!laopts->is_activate) +if (!laopts->send_messages)return 1 ; dm_list_iterate_items(lmsg, &seg->thin_messages) {