Skip to contentSkip to conversation

cluster/dlm/lib libdlm.c

Cluster-devel [email protected] 1 participant 1 message May 31, 2007

lore
Share & tools
lore
#0 lore raw

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

dlm/lib/libdlm.c +4 -0
@@ -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;