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:
parent
7230aa891c
commit
7657313740
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user