All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cluster-devel] [GFS2 Patch] pass formal ino in do_filldir_main
@ 2007-02-07  4:51 Wendy Cheng
  2007-02-07 10:49 ` Steven Whitehouse
  0 siblings, 1 reply; 14+ messages in thread
From: Wendy Cheng @ 2007-02-07  4:51 UTC (permalink / raw)
  To: cluster-devel.redhat.com

Lookup failure found in '07 NFS connectathon. The nfsd is in the middle
of readdirplus procedure call where it builds the file handles
associated with the directory. GFS2 lookup code has been expected the
first 64 bit of gfs2 inode number (formal inode number) but
do_filldir_main() wrongly passes on-disk address inode number (no_addr).
This patch fixes this.

Signed-off-by: S. Wendy Cheng <wcheng@redhat.com>

dir.c |    3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)

--- linux-git/fs/gfs2/dir.c	2007-02-06 01:07:26.000000000 -0500
+++ linux/fs/gfs2/dir.c	2007-02-06 20:50:16.000000000 -0500
@@ -1241,8 +1241,9 @@ static int do_filldir_main(struct gfs2_i
 
 		error = filldir(opaque, (const char *)(dent + 1),
 				be16_to_cpu(dent->de_name_len),
-				off, be64_to_cpu(dent->de_inum.no_addr),
+				off, be64_to_cpu(dent->de_inum.no_formal_ino),
 				be16_to_cpu(dent->de_type));
+		
 		if (error)
 			return 1;
 




^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2007-02-28 16:46 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-07  4:51 [Cluster-devel] [GFS2 Patch] pass formal ino in do_filldir_main Wendy Cheng
2007-02-07 10:49 ` Steven Whitehouse
2007-02-07 22:35   ` Wendy Cheng
2007-02-07 23:37     ` Wendy Cheng
2007-02-08  9:42     ` Steven Whitehouse
2007-02-24  3:56       ` Wendy Cheng
2007-02-26 15:45         ` Steven Whitehouse
2007-02-26 16:11           ` Jonathan E Brassow
2007-02-26 17:16             ` Steven Whitehouse
2007-02-27 20:04               ` Wendy Cheng
2007-02-28  9:03                 ` Steven Whitehouse
2007-02-28 16:24                   ` Wendy Cheng
2007-02-28 16:26                     ` Wendy Cheng
2007-02-28 16:46                     ` Steven Whitehouse

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.