[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] cluster/dlm/lib libdlm.c



CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	pcaulfield 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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]