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/lvresize.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/lvresize.c')
-rw-r--r-- | tools/lvresize.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lvresize.c b/tools/lvresize.c index 7a8617898..05e386f32 100644 --- a/tools/lvresize.c +++ b/tools/lvresize.c @@ -216,7 +216,7 @@ int lvresize(struct cmd_context *cmd, int argc, char **argv) return EINVALID_CMD_LINE; } - if (!(handle = init_processing_handle(cmd))) { + if (!(handle = init_processing_handle(cmd, NULL))) { log_error("Failed to initialize processing handle."); return ECMD_FAILED; } |