[lvm-devel] [PATCH 10/11] Remove redundant init_mirror_in_sync() call in init_lvm().

Alasdair G Kergon agk at redhat.com
Wed Dec 10 22:50:18 UTC 2008


On Wed, Dec 10, 2008 at 01:11:00PM -0500, Dave Wysochanski wrote:
> _mirror_in_sync is statically initialized to 0 in lvm-globals.c,
> so no need to set it in init_lvm().  Only other callers that may
> set this are later in execution.
 
Can the statics be relied upon if a handle is created, then destroyed
then a new handle created within the same process?

It basically depends if that initial value is relied upon anywhere, or
if later code always sets this before using it.

Alasdair
-- 
agk at redhat.com




More information about the lvm-devel mailing list