1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

pvck: fix looping dump metadata_all

dump metadata_all wouldn't quit if the metadata wrapped.
This commit is contained in:
David Teigland 2019-07-12 12:21:27 -05:00
parent 7230aa891c
commit 7657313740

View File

@ -395,6 +395,9 @@ static int _dump_meta_all(struct device *dev, const char *tofile,
search_offset = meta_offset + meta_size;
search_next:
if (search_wrapped && (search_offset >= meta_offset + meta_size))
goto done;
if (search_offset > mda_size) {
if (search_wrapped)
goto done;