summaryrefslogtreecommitdiff
path: root/tools/pvcreate.c
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2016-05-31 12:24:05 +0200
committerPeter Rajnoha <prajnoha@redhat.com>2016-06-20 11:33:41 +0200
commitf752a953022387cc7e5c4da11d118c12e3716ce4 (patch)
tree7a3e7065915305b5deb869ea233b0caccbe2651e /tools/pvcreate.c
parentc099f531fbb1702ea0aed16e5deec0368e7e7250 (diff)
downloadlvm2-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/pvcreate.c')
-rw-r--r--tools/pvcreate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pvcreate.c b/tools/pvcreate.c
index 77f5969db..ae133fa74 100644
--- a/tools/pvcreate.c
+++ b/tools/pvcreate.c
@@ -147,7 +147,7 @@ int pvcreate(struct cmd_context *cmd, int argc, char **argv)
return_ECMD_FAILED;
cmd->lockd_gl_disable = 1;
- if (!(handle = init_processing_handle(cmd))) {
+ if (!(handle = init_processing_handle(cmd, NULL))) {
log_error("Failed to initialize processing handle.");
return ECMD_FAILED;
}