[NFS] Increase size of struct fid raw buffer

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <torvalds@...>
Cc: <linux-kernel@...>, Christoph Hellwig <hch@...>, Neil Brown <neilb@...>, J. Bruce Fields <bfields@...>, Adrian Bunk <bunk@...>
Date: Monday, April 7, 2008 - 5:47 am

>From ba713d661333d790db5106c54d1f0ee94a876944 Mon Sep 17 00:00:00 2001
From: Steven Whitehouse <swhiteho@redhat.com>
Date: Mon, 7 Apr 2008 09:53:24 +0100
Subject: [PATCH] [NFS] Increase size of struct fid raw buffer

GFS2 requires the NFS filehandle buffer to be larger than the
minimum size as per the bug report: http://lkml.org/lkml/2007/10/24/374
Its a pretty trivial fix for now and I've done a test which shows
that it works ok.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Neil Brown <neilb@suse.de>
Cc: J. Bruce Fields <bfields@fieldses.org>
Cc: Adrian Bunk <bunk@kernel.org>

diff --git a/include/linux/exportfs.h b/include/linux/exportfs.h
index adcbb05..a6e928d 100644
--- a/include/linux/exportfs.h
+++ b/include/linux/exportfs.h
@@ -43,7 +43,7 @@ struct fid {
 			u32 parent_ino;
 			u32 parent_gen;
 		} i32;
-		__u32 raw[6];
+		__u32 raw[8];
 	};
 };
 
-- 
1.5.1.2



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[NFS] Increase size of struct fid raw buffer, Steven Whitehouse, (Mon Apr 7, 5:47 am)
Re: [NFS] Increase size of struct fid raw buffer, Linus Torvalds, (Mon Apr 7, 11:54 am)
Re: [NFS] Increase size of struct fid raw buffer, Steven Whitehouse, (Tue Apr 8, 3:50 am)
Re: [NFS] Increase size of struct fid raw buffer, Christoph Hellwig, (Tue Apr 8, 3:58 am)
[NFS] Use a zero sized array for raw field in struct fid, Steven Whitehouse, (Tue Apr 8, 9:01 am)
Re: [NFS] Use a zero sized array for raw field in struct fid, J. Bruce Fields, (Wed Apr 9, 12:13 pm)
Re: [NFS] Increase size of struct fid raw buffer, Steven Whitehouse, (Tue Apr 8, 5:57 am)