diff options
author | Eric Van Hensbergen <ericvh@gmail.com> | 2005-09-09 22:04:27 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-09 22:57:58 +0200 |
commit | 5d58bec5b7a8b8303df0a4dcb9a18feeefac6091 (patch) | |
tree | 3c00e676ce6c33fb736eaaa58f6defd1b39e9709 /fs/9p | |
parent | [PATCH] v9fs: Clean-up vfs_inode and setattr functions (diff) | |
download | linux-5d58bec5b7a8b8303df0a4dcb9a18feeefac6091.tar.xz linux-5d58bec5b7a8b8303df0a4dcb9a18feeefac6091.zip |
[PATCH] v9fs: Fix support for special files (devices, named pipes, etc.)
Fix v9fs special files (block, char devices) support.
Signed-off-by: Latchesar Ionkov <lucho@ionkov.net>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/9p')
-rw-r--r-- | fs/9p/vfs_inode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index 6d2357d1dacd..36fff087167f 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; |