[lvm-devel] master - pvchange: no need to initialize selection handle directly, process_each_pv will do that automatically
Peter Rajnoha
prajnoha at fedoraproject.org
Fri Feb 13 10:29:30 UTC 2015
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=1a729331432167008f4298903adb78d75abb267c
Commit: 1a729331432167008f4298903adb78d75abb267c
Parent: e1710f34bbbb46f8f6c6cc7ba284a4cbdac6dc2e
Author: Peter Rajnoha <prajnoha at redhat.com>
AuthorDate: Fri Feb 13 09:28:24 2015 +0100
Committer: Peter Rajnoha <prajnoha at redhat.com>
CommitterDate: Fri Feb 13 09:29:30 2015 +0100
pvchange: no need to initialize selection handle directly, process_each_pv will do that automatically
---
tools/pvchange.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/tools/pvchange.c b/tools/pvchange.c
index 9a673f7..a8414c1 100644
--- a/tools/pvchange.c
+++ b/tools/pvchange.c
@@ -172,8 +172,7 @@ int pvchange(struct cmd_context *cmd, int argc, char **argv)
goto out;
}
- if (!(handle = init_processing_handle(cmd)) ||
- (handle->internal_report_for_select && !init_selection_handle(cmd, handle, PVS))) {
+ if (!(handle = init_processing_handle(cmd))) {
log_error("Failed to initialize processing handle.");
ret = ECMD_FAILED;
goto out;
More information about the lvm-devel
mailing list