The ONE_VGNAME_ARG was being passed and tested as
vg_read() flag but it's a cmd struct flag.
(It affects command arg processing in toollib,
not vg_read behavior. Flags related to command
processing are generally cmd struct flags, while
vg_read arg flags are generally related to vg_read
behavior.)
xx(vgextend,
"Add physical volumes to a volume group",
- 0,
+ ONE_VGNAME_ARG,
"vgextend\n"
"\t[-A|--autobackup y|n]\n"
"\t[--restoremissing]\n"
struct dm_list vgnameids_to_process; /* vgnameid_list */
int enable_all_vgs = (cmd->command->flags & ALL_VGS_IS_DEFAULT);
- unsigned one_vgname_arg = (flags & ONE_VGNAME_ARG);
+ int one_vgname_arg = (cmd->command->flags & ONE_VGNAME_ARG);
int ret;
/* Disable error in vg_read so we can print it from ignore_vg. */
return_ECMD_FAILED;
ret = process_each_vg(cmd, argc, argv,
- READ_FOR_UPDATE | ONE_VGNAME_ARG, handle,
+ READ_FOR_UPDATE, handle,
restoremissing ? &_vgextend_restoremissing : &_vgextend_single);
destroy_processing_handle(cmd, handle);