1
0
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:
Zdenek Kabelac 2012-02-28 11:10:45 +00:00
parent dec6a245a9
commit 58afa3e7fb

View File

@ -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;