mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +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:
parent
4af4241ba4
commit
8ed0b6f312
@ -35,7 +35,7 @@ struct lv_activate_opts {
|
|||||||
int origin_only;
|
int origin_only;
|
||||||
int no_merging;
|
int no_merging;
|
||||||
int real_pool;
|
int real_pool;
|
||||||
int is_activate;
|
int send_messages;
|
||||||
int skip_in_use;
|
int skip_in_use;
|
||||||
unsigned revert;
|
unsigned revert;
|
||||||
unsigned read_only;
|
unsigned read_only;
|
||||||
|
@ -2388,8 +2388,6 @@ static int _tree_action(struct dev_manager *dm, struct logical_volume *lv,
|
|||||||
char *dlid;
|
char *dlid;
|
||||||
int r = 0;
|
int r = 0;
|
||||||
|
|
||||||
laopts->is_activate = (action == ACTIVATE);
|
|
||||||
|
|
||||||
if (!(dtree = _create_partial_dtree(dm, lv, laopts->origin_only)))
|
if (!(dtree = _create_partial_dtree(dm, lv, laopts->origin_only)))
|
||||||
return_0;
|
return_0;
|
||||||
|
|
||||||
@ -2471,6 +2469,7 @@ out_no_root:
|
|||||||
int dev_manager_activate(struct dev_manager *dm, struct logical_volume *lv,
|
int dev_manager_activate(struct dev_manager *dm, struct logical_volume *lv,
|
||||||
struct lv_activate_opts *laopts)
|
struct lv_activate_opts *laopts)
|
||||||
{
|
{
|
||||||
|
laopts->send_messages = 1;
|
||||||
if (!_tree_action(dm, lv, laopts, ACTIVATE))
|
if (!_tree_action(dm, lv, laopts, ACTIVATE))
|
||||||
return_0;
|
return_0;
|
||||||
|
|
||||||
|
@ -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.
|
* Also transation_id is checked only when snapshot origin is active.
|
||||||
* (This might change later)
|
* (This might change later)
|
||||||
*/
|
*/
|
||||||
if (!laopts->is_activate)
|
if (!laopts->send_messages)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
dm_list_iterate_items(lmsg, &seg->thin_messages) {
|
dm_list_iterate_items(lmsg, &seg->thin_messages) {
|
||||||
|
Loading…
Reference in New Issue
Block a user