int lvconvert_merge_mirror_images_cmd(struct cmd_context *cmd, int argc, char **argv)
{
/* arg can be a VG name, which is the standard option usage */
- cmd->cname->flags &= ~GET_VGNAME_FROM_OPTIONS;
+ cmd->get_vgname_from_options = 0;
return process_each_lv(cmd, cmd->position_argc, cmd->position_argv, NULL, NULL, READ_FOR_UPDATE,
NULL, &_lvconvert_visible_check, &_lvconvert_merge_mirror_images_single);
handle->custom_handle = &lr;
- cmd->cname->flags &= ~GET_VGNAME_FROM_OPTIONS;
+ cmd->get_vgname_from_options = 0;
ret = process_each_lv(cmd, cmd->position_argc, cmd->position_argv, NULL, NULL, READ_FOR_UPDATE,
handle, NULL, &_lvconvert_merge_generic_single);
handle->custom_handle = &lr;
- cmd->cname->flags &= ~GET_VGNAME_FROM_OPTIONS;
+ cmd->get_vgname_from_options = 0;
ret = process_each_lv(cmd, cmd->position_argc, cmd->position_argv, NULL, NULL, READ_FOR_UPDATE, handle, NULL,
&lvconvert_writecache_attach_single);
handle->custom_handle = &lr;
- cmd->cname->flags &= ~GET_VGNAME_FROM_OPTIONS;
+ cmd->get_vgname_from_options = 0;
ret = process_each_lv(cmd, cmd->position_argc, cmd->position_argv, NULL, NULL, READ_FOR_UPDATE, handle, NULL,
&lvconvert_cachevol_attach_single);
/* Want to be able to remove integrity from partial LV */
cmd->handles_missing_pvs = 1;
- cmd->cname->flags &= ~GET_VGNAME_FROM_OPTIONS;
+ cmd->get_vgname_from_options = 0;
ret = process_each_lv(cmd, cmd->position_argc, cmd->position_argv, NULL, NULL, READ_FOR_UPDATE, handle, NULL,
&_lvconvert_integrity_single);
/*
* Find any LVs, VGs or tags explicitly provided on the command line.
*/
- if (cmd->cname->flags & GET_VGNAME_FROM_OPTIONS)
+ if (cmd->get_vgname_from_options)
ret = _get_arg_lvnames_using_options(cmd, argc, argv, &arg_vgnames, &arg_lvnames, &arg_tags);
else
ret = _get_arg_lvnames(cmd, argc, argv, one_vgname, one_lvname, &arg_vgnames, &arg_lvnames, &arg_tags);