The DLM unlock returns EUNLOCK in the lksb on success, not 0
Version 2.02.46 -
================================
Flush memory pool and fix locking in clvmd refresh and backup command.
+ Fix unlocks in clvmd-corosync. Broken in 2.02.45.
Version 2.02.45 - 3rd March 2009
================================
DEBUGLOG("Unlock returned %d\n", err);
return err;
}
- if (lksb.sb_status != 0)
+ if (lksb.sb_status != EUNLOCK)
{
DEBUGLOG("dlm_ls_unlock_wait returns lksb.sb_status: %d\n", lksb.sb_status);
errno = lksb.sb_status;