From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3559 invoked by alias); 5 Jun 2007 16:35:02 -0000 Received: (qmail 3513 invoked by uid 9453); 5 Jun 2007 16:35:00 -0000 Date: Tue, 05 Jun 2007 16:35:00 -0000 Message-ID: <20070605163500.3512.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/msg00253.txt.bz2 CVSROOT: /cvs/cluster Module name: cluster Branch: RHEL5 Changes by: teigland@sourceware.org 2007-06-05 16:35:00 Modified files: dlm/lib : libdlm.c libdlm.h Log message: The sum of three commits from HEAD: 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. -- Add dlm_ls_deadlock_cancel() that allows a system daemon to cancel an application's deadlocked lock. This requires the latest dlm kernel headers. -- open_lockspace needs to detect kernel version too, otherwise all lockops will fail mysteriously. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm/lib/libdlm.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.32.2.1&r2=1.32.2.2 http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm/lib/libdlm.h.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.13&r2=1.13.2.1