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

[Cluster-devel] cluster/group/gfs_controld plock.c



CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	teigland sourceware org	2006-10-09 21:51:49

Modified files:
	group/gfs_controld: plock.c 

Log message:
	if we get a plock request from the kernel when plocks are disabled,
	return -ENOSYS for the request

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/gfs_controld/plock.c.diff?cvsroot=cluster&r1=1.22&r2=1.23

--- cluster/group/gfs_controld/plock.c	2006/10/09 21:48:57	1.22
+++ cluster/group/gfs_controld/plock.c	2006/10/09 21:51:49	1.23
@@ -311,6 +311,11 @@
 
 	rv = read(control_fd, &info, sizeof(info));
 
+	if (!plocks_online) {
+		rv = -ENOSYS;
+		goto fail;
+	}
+
 	mg = find_mg_id(info.fsid);
 	if (!mg) {
 		log_debug("process_plocks: no mg id %x", info.fsid);


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