[Gluster-devel] Can we call glfs_fini() when glfs_init() failed? (a.k.a. core generated in master/3.7)

Ravishankar N ravishankar at redhat.com
Wed May 13 05:29:07 UTC 2015


I'm able to hit a crash in master and 3.7 with the steps described in 
this BZ https://bugzilla.redhat.com/show_bug.cgi?id=1220996#c0

In glfs-heal.c and in other examples, we call glfs_fini (fs) if 'fs' is 
valid, irrespective of whether glfs_init() is successful or not. Is it 
okay to do this?
I also found that even though glfs_init() returns -1 when the volume is 
not started, fs->init==1.

Thanks,
Ravi


More information about the Gluster-devel mailing list