From: Eric Van Hensbergen Date: Fri, 9 Sep 2005 20:04:27 +0000 (-0700) Subject: [PATCH] v9fs: Fix support for special files (devices, named pipes, etc.) X-Git-Tag: v2.6.14-rc1~332 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=5d58bec5b7a8b8303df0a4dcb9a18feeefac6091;p=linux-2.6-omap-h63xx.git [PATCH] v9fs: Fix support for special files (devices, named pipes, etc.) Fix v9fs special files (block, char devices) support. Signed-off-by: Latchesar Ionkov Signed-off-by: Eric Van Hensbergen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index 6d2357d1dac..36fff087167 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c @@ -250,6 +250,9 @@ struct inode *v9fs_get_inode(struct super_block *sb, int mode) case S_IFBLK: case S_IFCHR: case S_IFSOCK: + init_special_inode(inode, inode->i_mode, + inode->i_rdev); + break; case S_IFREG: inode->i_op = &v9fs_file_inode_operations; inode->i_fop = &v9fs_file_operations;