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

thin: replace is_active with send_messages

Since is_active is only used for thinp
replace struct member with more meaningful
send_messages flag
This commit is contained in:
Zdenek Kabelac 2013-01-17 10:35:27 +01:00
parent 4af4241ba4
commit 8ed0b6f312
3 changed files with 3 additions and 4 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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) {