mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +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_offset = meta_offset + meta_size;
|
||||||
|
|
||||||
search_next:
|
search_next:
|
||||||
|
if (search_wrapped && (search_offset >= meta_offset + meta_size))
|
||||||
|
goto done;
|
||||||
|
|
||||||
if (search_offset > mda_size) {
|
if (search_offset > mda_size) {
|
||||||
if (search_wrapped)
|
if (search_wrapped)
|
||||||
goto done;
|
goto done;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user