summaryrefslogtreecommitdiff
path: root/tools/vgimportclone.c
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2017-01-13 15:08:51 -0600
committerDavid Teigland <teigland@redhat.com>2017-02-13 08:20:10 -0600
commit013c080756dcc2faaecc80b489d85d7ab1384cbf (patch)
tree268b42418645d7fb548e0dfe6b2e397fa1fceb55 /tools/vgimportclone.c
parentd9d5b8414bb5ead7dbd223606a735497c0c069f9 (diff)
downloadlvm2-013c080756dcc2faaecc80b489d85d7ab1384cbf.tar.gz
command struct: remove command name refs
Change run time access to the command_name struct cmd->cname instead of indirectly through cmd->command->cname. This removes the two run time fields from struct command.
Diffstat (limited to 'tools/vgimportclone.c')
-rw-r--r--tools/vgimportclone.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/vgimportclone.c b/tools/vgimportclone.c
index b23b14e87..1f86ad66c 100644
--- a/tools/vgimportclone.c
+++ b/tools/vgimportclone.c
@@ -240,7 +240,7 @@ int vgimportclone(struct cmd_context *cmd, int argc, char **argv)
*/
log_debug("Finding devices to import.");
- cmd->command->flags |= ENABLE_DUPLICATE_DEVS;
+ cmd->cname->flags |= ENABLE_DUPLICATE_DEVS;
process_each_pv(cmd, argc, argv, NULL, 0, READ_ALLOW_EXPORTED, handle, _vgimportclone_pv_single);
if (vp.found_args != argc) {