cluster/dlm/lib libdlm.c libdlm.h

teigland@sourceware.org teigland@sourceware.org
Fri May 18 16:35:00 GMT 2007


CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	teigland@sourceware.org	2007-05-18 16:35:16

Modified files:
	dlm/lib        : libdlm.c libdlm.h 

Log message:
	Make new features available based on recent dlm kernel patches.
	
	The kernel patches change the user/kernel device interface used by libdlm.
	(You'll need the new dlm_device.h kernel header installed on your system
	to build the lib.) libdlm is backward compatible with the old kernel
	interface, but some of the new features will return errors on old kernels.
	
	New API's provided by libdlm:
	- dlm_new_lockspace() is just like dlm_create_lockspace() but has a flags
	arg so flags can be passed when creating/joining a lockspace.
	- DLM_LSFL_NODIR and DLM_LSFL_TIMEWARN are new flags that can be used with
	dlm_new_lockspace().
	- dlm_ls_purge() is new and can be used to purge orphan locks.
	- all DLM_LKF flags can now be used with dlm_lock* routines (flags above
	16 bits couldn't be used before)
	- new DLM_LKF_TIMEOUT flag to enable lock timeouts
	- dlm_ls_lockx() is new and adds "xid" and "timeout" args
	
	All previous API's are still available, and programs compiled against
	previous versions of libdlm should still work.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm/lib/libdlm.c.diff?cvsroot=cluster&r1=1.33&r2=1.34
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm/lib/libdlm.h.diff?cvsroot=cluster&r1=1.13&r2=1.14



More information about the Cluster-cvs mailing list