From mboxrd@z Thu Jan 1 00:00:00 1970 From: pcaulfield@sourceware.org Date: 31 May 2007 13:46:36 -0000 Subject: [Cluster-devel] cluster/dlm/lib libdlm.c Message-ID: <20070531134636.32057.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: cluster Changes by: pcaulfield at sourceware.org 2007-05-31 13:46:35 Modified files: dlm/lib : libdlm.c Log message: 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&r1=1.35&r2=1.36 --- cluster/dlm/lib/libdlm.c 2007/05/30 18:18:02 1.35 +++ cluster/dlm/lib/libdlm.c 2007/05/31 13:46:35 1.36 @@ -1462,6 +1462,10 @@ struct dlm_ls_info *newls; int saved_errno; + /* Need to detect kernel version */ + if (open_control_device()) + return NULL; + newls = malloc(sizeof(struct dlm_ls_info)); if (!newls) return NULL;