[PATCH] NLM program ID for user space NLM server

From: Menny Hamburger
Date: Thu May 10 2007 - 05:57:23 EST


Hi,

Since the current kernel cannot be compiled with NFS client and without
lockd, it is not possible to register a user space NLM server
Without colliding with the kernel service registered in
.../fs/lockd/lockd.c.

This simple patch gives the ability to provide NLM_PROGRAM from outside:
--- linux-2.6.20/include/linux/lockd/nlm.h 2007-02-04
20:44:54.000000000 +0200
+++ linux-2.6.20_patched/include/linux/lockd/nlm.h 2007-05-10
12:21:40.799004000 +0300
@@ -30,7 +30,9 @@
#endif
};

+#ifndef
#define NLM_PROGRAM 100021
+#endif

#define NLMPROC_NULL 0
#define NLMPROC_TEST 1

Menny

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/