linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* cramfs and named-pipe
@ 2008-08-04  9:21 Atsushi Nemoto
  2008-08-04 10:03 ` Al Viro
  0 siblings, 1 reply; 5+ messages in thread
From: Atsushi Nemoto @ 2008-08-04  9:21 UTC (permalink / raw)
  To: Dave Johnson; +Cc: linux-kernel, linux-fsdevel

After commit a97c9bf33f4612e2aed6f000f6b1d268b6814f3c (fix cramfs
making duplicate entries in inode cache) in kernel 2.6.14, named-pipe
on cramfs does not work properly.

It seems the commit make all named-pipe on cramfs share their inode
(and named-pipe buffer).  Is this fix correct?

diff --git a/fs/cramfs/inode.c b/fs/cramfs/inode.c
index 0c3b618..87754ff 100644
--- a/fs/cramfs/inode.c
+++ b/fs/cramfs/inode.c
@@ -61,6 +61,9 @@ static int cramfs_iget5_test(struct inode *inode, void *opaque)
 	    (inode->i_rdev != old_decode_dev(cramfs_inode->size)))
 		return 0; /* does not match */
 
+	if (S_ISFIFO(inode->i_mode))
+		return 0; /* does not match */
+
 	return 1; /* matches */
 }
 

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

end of thread, other threads:[~2008-08-20 20:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-04  9:21 cramfs and named-pipe Atsushi Nemoto
2008-08-04 10:03 ` Al Viro
2008-08-05  3:09   ` Atsushi Nemoto
2008-08-15 22:52     ` Andrew Morton
2008-08-20 20:18       ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).