diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2016-05-31 12:24:05 +0200 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2016-06-20 11:33:41 +0200 |
commit | f752a953022387cc7e5c4da11d118c12e3716ce4 (patch) | |
tree | 7a3e7065915305b5deb869ea233b0caccbe2651e /tools/vgcfgbackup.c | |
parent | c099f531fbb1702ea0aed16e5deec0368e7e7250 (diff) | |
download | lvm2-f752a953022387cc7e5c4da11d118c12e3716ce4.tar.gz |
toollib: add 'parent' field to processing_handle; init report format only if there's no parent
If there's parent processing handle, we don't need to create completely
new report group and status report - we'll just reuse the one already
initialized for the parent.
Currently, the situation where this matter is when doing internal report
to do the selection for processing commands where we have parent processing
handle for the command itself and processing handle for the selection
part (that is selection for non-reporting tools).
Diffstat (limited to 'tools/vgcfgbackup.c')
-rw-r--r-- | tools/vgcfgbackup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/vgcfgbackup.c b/tools/vgcfgbackup.c index 554317edf..c47c1ef72 100644 --- a/tools/vgcfgbackup.c +++ b/tools/vgcfgbackup.c @@ -85,7 +85,7 @@ int vgcfgbackup(struct cmd_context *cmd, int argc, char **argv) char *last_filename = NULL; struct processing_handle *handle = NULL; - if (!(handle = init_processing_handle(cmd))) { + if (!(handle = init_processing_handle(cmd, NULL))) { log_error("Failed to initialize processing handle."); return ECMD_FAILED; } |