1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Fail deamonization if lvmcache_init fail

FIXME Add proper cleanup
This commit is contained in:
Zdenek Kabelac 2011-01-05 12:59:46 +00:00
parent 1936d75b3c
commit de0ae6a18f
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.80 -
====================================
Fail poll daemon creation when lvmcache_init() fails.
Return defined value for errors in _copy_percent() and _snap_percent().
Correct return code of cmirrord when issuing 'start' when already running.
Fix wrongly paired unlocking of global lock in pvchange. (2.02.66)

View File

@ -64,7 +64,9 @@ static int _become_daemon(struct cmd_context *cmd)
strncpy(*cmd->argv, "(lvm2)", strlen(*cmd->argv));
reset_locking();
lvmcache_init();
if (!lvmcache_init())
/* FIXME Clean up properly here */
_exit(ECMD_FAILED);
dev_close_all();
return 1;