[lvm-devel] [PATCH 19/20] report: Iterate over labels instead of PVs for label-only reports.

Petr Rockai prockai at redhat.com
Mon Jul 29 19:19:23 UTC 2013


---
 tools/reporter.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/reporter.c b/tools/reporter.c
index 6bf2048..5602883 100644
--- a/tools/reporter.c
+++ b/tools/reporter.c
@@ -362,8 +362,8 @@ static int _report(struct cmd_context *cmd, int argc, char **argv,
 				    report_handle, &_vgs_single);
 		break;
 	case LABEL:
-		r = process_each_pv(cmd, argc, argv, NULL, READ_WITHOUT_LOCK,
-				    1, report_handle, &_label_single);
+		r = process_each_label(cmd, argc, argv,
+				       report_handle, &_label_single);
 		break;
 	case PVS:
 		if (args_are_pvs)
-- 
1.8.2




More information about the lvm-devel mailing list