From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29259 invoked by alias); 18 May 2007 16:35:17 -0000 Received: (qmail 29220 invoked by uid 9453); 18 May 2007 16:35:16 -0000 Date: Fri, 18 May 2007 16:35:00 -0000 Message-ID: <20070518163516.29219.qmail@sourceware.org> From: teigland@sourceware.org To: cluster-cvs@sources.redhat.com Subject: cluster/dlm/lib libdlm.c libdlm.h Mailing-List: contact cluster-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cluster-cvs-owner@sourceware.org X-SW-Source: 2007-q2/txt/msg00197.txt.bz2 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