Blame SOURCES/lvm2-2_03_06-pvck-fix-looping-dump-metadata_all.patch

26e710
 tools/pvck.c | 3 +++
26e710
 1 file changed, 3 insertions(+)
26e710
26e710
diff --git a/tools/pvck.c b/tools/pvck.c
26e710
index 3437164..af2dd8e 100644
26e710
--- a/tools/pvck.c
26e710
+++ b/tools/pvck.c
26e710
@@ -395,6 +395,9 @@ static int _dump_meta_all(struct device *dev, const char *tofile,
26e710
 	search_offset = meta_offset + meta_size;
26e710
 
26e710
  search_next:
26e710
+	if (search_wrapped && (search_offset >= meta_offset + meta_size))
26e710
+		goto done;
26e710
+
26e710
 	if (search_offset > mda_size) {
26e710
 		if (search_wrapped)
26e710
 			goto done;