1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
lvm2/daemons
Milan Broz 679830cf58 In some versions (RHEL6) dlm_create_lockspace() always
return lockspace reference (even if lockspace already exists)
and thus increases DLM lockspace count. It means that after
clvmd restart the lockspace is still in use.

(The only way to clean environment to enable clean cluster
shutdown is call "dlm_tool leave clvmd" several times.)

Because only one clvmd can run in time, we can use simpler logic,
try to open lockspace with dlm_open_lockspace() and only if it fails
try to create new one. This way the lockspace reference doesn not
increase.

Very easily reproducible with  "clvmd -S" command.

Patch also fixes return code when clvmd_restart fails and fixes
double free if debug option was specified during restart.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=612862
2011-01-19 23:09:31 +00:00
..
clvmd In some versions (RHEL6) dlm_create_lockspace() always 2011-01-19 23:09:31 +00:00
cmirrord Removed unused pointer 2010-12-20 13:58:38 +00:00
dmeventd Remove DEBUGLOG from dmeventd. 2011-01-17 23:14:05 +00:00
Makefile.in Use vpath instead of VPATH. 2010-04-09 21:34:25 +00:00