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

pcaulfield at sourceware.org pcaulfield at sourceware.org
Thu Jul 5 08:08:22 UTC 2007


CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL4
Changes by:	pcaulfield at sourceware.org	2007-07-05 08:08:22

Modified files:
	dlm/lib        : libdlm.c 

Log message:
	Honour the mode parameter to dlm_create_lockspace() even if the
	device node was created by udev.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm/lib/libdlm.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.15.2.3&r2=1.15.2.4

--- cluster/dlm/lib/libdlm.c	2006/01/06 15:17:34	1.15.2.3
+++ cluster/dlm/lib/libdlm.c	2007/07/05 08:08:22	1.15.2.4
@@ -1028,6 +1028,8 @@
     }
     newls->tid = 0;
     fcntl(newls->fd, F_SETFD, 1);
+    if (mode)
+	fchmod(newls->fd, mode);
 
     return (dlm_lshandle_t)newls;
 }




More information about the Cluster-devel mailing list