[pnfs] [PATCH 01/19] pnfsblock: define PNFS_BLOCK Kconfig option

Fred Isaman iisaman at citi.umich.edu
Tue Mar 25 16:25:56 EDT 2008


Define a configuration variable to enable/disable compilation of the
block driver code.

Signed-off-by: Fred Isaman <iisaman at citi.umich.edu>
---
 fs/Kconfig                  |    8 ++++++++
 fs/nfs/Makefile             |    2 ++
 fs/nfs/blocklayout/Makefile |    5 +++++
 3 files changed, 15 insertions(+), 0 deletions(-)
 create mode 100644 fs/nfs/blocklayout/Makefile

diff --git a/fs/Kconfig b/fs/Kconfig
index 1f5a94a..267fd43 100644
--- a/fs/Kconfig
+++ b/fs/Kconfig
@@ -1665,6 +1665,14 @@ config PNFS
 
 	  If unsure, say N.
 
+config PNFS_BLOCK
+	tristate "Provide a pNFS block client (EXPERIMENTAL)"
+	depends on PNFS
+	help
+	  Say Y here if you want your pNfs client to support the block protocol
+
+	  If unsure, say N.
+
 config NFS_DIRECTIO
 	bool "Allow direct I/O on NFS files"
 	depends on NFS_FS
diff --git a/fs/nfs/Makefile b/fs/nfs/Makefile
index 81c8837..772d539 100644
--- a/fs/nfs/Makefile
+++ b/fs/nfs/Makefile
@@ -21,3 +21,5 @@ nfs-$(CONFIG_SYSCTL) += sysctl.o
 
 obj-m += nfslayoutdriver.o
 nfslayoutdriver-objs := nfs4filelayout.o nfs4filelayoutdev.o
+
+obj-$(CONFIG_PNFS_BLOCK) += blocklayout/
diff --git a/fs/nfs/blocklayout/Makefile b/fs/nfs/blocklayout/Makefile
new file mode 100644
index 0000000..f214c1c
--- /dev/null
+++ b/fs/nfs/blocklayout/Makefile
@@ -0,0 +1,5 @@
+#
+# Makefile for the pNFS block layout driver kernel module
+#
+obj-$(CONFIG_PNFS_BLOCK) +=
+blocklayoutdriver-objs :=
-- 
1.5.3.3



More information about the pNFS mailing list