[Linux-cluster] DLM user API for lock value block

David Teigland teigland at redhat.com
Tue Dec 6 16:50:45 UTC 2016

On Tue, Dec 06, 2016 at 05:18:44PM +0100, Jean-Marc Saffroy wrote:
> Hi,
> I am trying to use the DLM userland API (libdlm3), and while I was able to 
> do plain lock acquisitions and conversions, I am stuck trying to update 
> and then read the lock value block.
> Does anyone have working examples of this? I did look at the rhdlmbook 
> doc, but couldn't fine one.

I haven't looked at your test to check if you're actually seeing this bug,
but you'll want this fix in any case:


In the following lvmlockd code, you can see an example of working around
that bug if you don't have immediate access to a newer kernel:


There are some other random userland tests here that use lvbs:



More information about the Linux-cluster mailing list