[linux-lvm] clvmd-corosync should check lksb.sb_status instead of return code ?

Xinwei Hu hxinwei at gmail.com
Wed Feb 25 10:35:48 UTC 2009


Hi all,

  In clvmd-corosync, lock_resource calls dlm_ls_lock_wait with flags
set to LKF_NOQUEUE.
  When LKF_NOQUEUE is set, the return code of dlm_ls_lock_wait is
always 0, while the actual errno is in lksb.sb_status.

  This causes problem when using vgchange -aey or something like.

  I attached a patch to try to fix this issue.

  Please help to review. Thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clvmd-corosync.diff
Type: text/x-patch
Size: 861 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20090225/b1035d14/attachment.bin>


More information about the linux-lvm mailing list