master - debug: put stack on error path
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=112c0592ad0d25bae0cea04275d201d72187f85b Commit: 112c0592ad0d25bae0cea04275d201d72187f85b Parent: 007be91e3d128320c290fc404532d1d691212b88 Author: Zdenek Kabelac <[email protected]> AuthorDate: Wed Nov 11 22:04:44 2015 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Fri Nov 13 11:17:06 2015 +0100
debug: put stack on error path
At least check result and trace it.
However we may need better error reaction in this case.
--- lib/cache/lvmetad.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
lib/cache/lvmetad.c +2 -1
@@ -1734,7 +1734,8 @@ void lvmetad_validate_global_cache(struct cmd_context *cmd, int force)* Update the local lvmetad cache so it correctly reflects any * changes made on remote hosts. */ -lvmetad_pvscan_all_devs (cmd,NULL ); +if (!lvmetad_pvscan_all_devs (cmd,NULL )) + stack;/* FIXME: Anything more on this error path ? */ /* * Clear the global_invalid flag in lvmetad.