[lvm-devel] [PATCH 20/23] exit if lvmchache_init fails

Alasdair G Kergon agk at redhat.com
Wed Jan 5 01:22:27 UTC 2011


On Tue, Dec 21, 2010 at 04:41:52PM +0100, Zdenek Kabelac wrote:
>  	reset_locking();
> -	lvmcache_init();
> +	if (!lvmcache_init())
> +		_exit(ECMD_FAILED);
>  	dev_close_all();
  
Ack.

Not ideal, but we actually already have some existing tricky cleanup problems
here that I never fixed, so just add a FIXME "Clean up properly here!" to that
_exit().

Alasdair




More information about the lvm-devel mailing list