summaryrefslogtreecommitdiffstats
path: root/tools/vgchange.c
diff options
context:
space:
mode:
authorMilan Broz <mbroz@redhat.com>2011-01-19 23:09:31 +0000
committerMilan Broz <mbroz@redhat.com>2011-01-19 23:09:31 +0000
commit679830cf580b77305bf1c34f84d6e40d0453bdd1 (patch)
treefba7db48fd0306b9f4d8109ebeb9b03cc127619a /tools/vgchange.c
parentdbc8e5098c518645ddae991e17ded204b5ecc7e4 (diff)
downloadlvm2-679830cf580b77305bf1c34f84d6e40d0453bdd1.tar.gz
lvm2-679830cf580b77305bf1c34f84d6e40d0453bdd1.tar.xz
lvm2-679830cf580b77305bf1c34f84d6e40d0453bdd1.zip
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
Diffstat (limited to 'tools/vgchange.c')
0 files changed, 0 insertions, 0 deletions