Skip to content

Commit

Permalink
[GFS2] re-support special inode
Browse files Browse the repository at this point in the history
a previous commit removed call to
init_special_inode from inode lookuping, this cause problems as:

 # mknod /mnt/gfs2/dev/null c 1 3
 # cat /mnt/gfs2/dev/null
 cat: /mnt/gfs2/dev/null: Invalid argument

without special inode, GFS2 cannot support char device file,
block device file, fifo pipe, and socket file, lose many important
features as a common file system.

this one line patch re add special inode support.

Signed-off-by: Denis Cheng <[email protected]>
Signed-off-by: Steven Whitehouse <[email protected]>
  • Loading branch information
crquan authored and swhiteho committed Mar 31, 2008
1 parent d83225d commit 43a33c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/gfs2/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ void gfs2_set_iop(struct inode *inode)
inode->i_op = &gfs2_symlink_iops;
} else {
inode->i_op = &gfs2_file_iops;
init_special_inode(inode, inode->i_mode, inode->i_rdev);
}

unlock_new_inode(inode);
Expand Down

0 comments on commit 43a33c5

Please sign in to comment.