patch-1.3.96 linux/fs/locks.c

Next file: linux/fs/nfs/README
Previous file: linux/fs/isofs/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.95/linux/fs/locks.c linux/fs/locks.c
@@ -273,9 +273,18 @@
 		break;
 	case F_SHLCK :
 	case F_EXLCK :
+#if 1
+/* warn a bit for now, but don't overdo it */
+{
+	static int count = 0;
+	if (count < 5) {
+		count++;
 		printk(KERN_WARNING
 		       "fcntl_setlk() called by process %d with broken flock() emulation\n",
 		       current->pid);
+	}
+}
+#endif
 		if (!(filp->f_mode & 3))
 			return (-EBADF);
 		break;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this