mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
Fail deamonization if lvmcache_init fail
FIXME Add proper cleanup
This commit is contained in:
parent
1936d75b3c
commit
de0ae6a18f
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.80 -
|
Version 2.02.80 -
|
||||||
====================================
|
====================================
|
||||||
|
Fail poll daemon creation when lvmcache_init() fails.
|
||||||
Return defined value for errors in _copy_percent() and _snap_percent().
|
Return defined value for errors in _copy_percent() and _snap_percent().
|
||||||
Correct return code of cmirrord when issuing 'start' when already running.
|
Correct return code of cmirrord when issuing 'start' when already running.
|
||||||
Fix wrongly paired unlocking of global lock in pvchange. (2.02.66)
|
Fix wrongly paired unlocking of global lock in pvchange. (2.02.66)
|
||||||
|
@ -64,7 +64,9 @@ static int _become_daemon(struct cmd_context *cmd)
|
|||||||
strncpy(*cmd->argv, "(lvm2)", strlen(*cmd->argv));
|
strncpy(*cmd->argv, "(lvm2)", strlen(*cmd->argv));
|
||||||
|
|
||||||
reset_locking();
|
reset_locking();
|
||||||
lvmcache_init();
|
if (!lvmcache_init())
|
||||||
|
/* FIXME Clean up properly here */
|
||||||
|
_exit(ECMD_FAILED);
|
||||||
dev_close_all();
|
dev_close_all();
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user