[Cluster-devel] cluster/dlm/lib libdlm.c
pcaulfield at sourceware.org
pcaulfield at sourceware.org
Thu May 31 13:46:36 UTC 2007
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;
More information about the Cluster-devel
mailing list