mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
Check error from _lv_each_dependency
_lv_mark_if_partial_collect cannot fail, however it's good to keep checking here as we do in all other cases.
This commit is contained in:
parent
dec6a245a9
commit
58afa3e7fb
@ -2186,7 +2186,8 @@ static int _lv_mark_if_partial_single(struct logical_volume *lv, void *data)
|
||||
}
|
||||
|
||||
baton.partial = 0;
|
||||
_lv_each_dependency(lv, _lv_mark_if_partial_collect, &baton);
|
||||
if (!_lv_each_dependency(lv, _lv_mark_if_partial_collect, &baton))
|
||||
return_0;
|
||||
|
||||
if (baton.partial)
|
||||
lv->status |= PARTIAL_LV;
|
||||
|
Loading…
x
Reference in New Issue
Block a user