[pnfs] [PATCH 04/28] pnfs: FIXME: NFS4_PNFS_DEV_MAXSIZE too small

Fred Isaman iisaman at citi.umich.edu
Tue Mar 11 15:31:45 EDT 2008


This patch boosts NFS4_PNFS_DEV_MAXSIZE to something slightly more
reasonable for the block driver.

FIXME  The code needs to be changed so that, if TOO_SMALL is returned by
GETDEVICEINFO, then an appropriately sized GETDEVICEINFO will be sent.

Signed-off-by: Fred Isaman <iisaman at citi.umich.edu>
---
 include/linux/nfs4_pnfs.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/include/linux/nfs4_pnfs.h b/include/linux/nfs4_pnfs.h
index 2aaf526..451afef 100644
--- a/include/linux/nfs4_pnfs.h
+++ b/include/linux/nfs4_pnfs.h
@@ -17,7 +17,8 @@
 #include <linux/nfs_page.h>
 
 #define NFS4_PNFS_DEV_MAXNUM 16
-#define NFS4_PNFS_DEV_MAXSIZE 128
+/* FIXME: This is way too small for block driver */
+#define NFS4_PNFS_DEV_MAXSIZE 512
 
 /* Per-layout driver specific registration structure */
 struct pnfs_layoutdriver_type {
-- 
1.5.3.3



More information about the pNFS mailing list