Skip to contentSkip to conversation

master - report: Iterate over labels instead of PVs for label-only reports.

PATCH Petr Rockai 1 participant 1 message Nov 17, 2013

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=67a7b7a87da65b2350f975272e581be5f41976e0
Commit:        67a7b7a87da65b2350f975272e581be5f41976e0
Parent:        99214c51eb815806c4a4a4711fa3562546479751
Author:        Petr Rockai <[email protected]>
AuthorDate:    Mon Jul 29 19:14:51 2013 +0200
Committer:     Petr Rockai <[email protected]>
CommitterDate: Sun Nov 17 21:43:06 2013 +0100

report: Iterate over labels instead of PVs for label-only reports.

---
 tools/reporter.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
tools/reporter.c +2 -2
index 8b2a7c7..a15f8ef 100644
@@ -391,8 +391,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)