mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvmcache: check for lvmcache_foreach_mda return code
lvmcache_foreach_mda() can fail for numerous reasons and failing error code cannot be ignored (out-of-memory...) TODO: might need more error handling tunning.
This commit is contained in:
parent
d4ce98de4d
commit
c1e3f96c97
@ -437,7 +437,9 @@ out:
|
|||||||
baton.info = info;
|
baton.info = info;
|
||||||
baton.label = *label;
|
baton.label = *label;
|
||||||
|
|
||||||
lvmcache_foreach_mda(info, _update_mda, &baton);
|
if (!lvmcache_foreach_mda(info, _update_mda, &baton))
|
||||||
|
return_0;
|
||||||
|
|
||||||
lvmcache_make_valid(info);
|
lvmcache_make_valid(info);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user