patch-2.3.36 linux/fs/udf/inode.c
Next file: linux/fs/udf/namei.c
Previous file: linux/fs/super.c
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Tue Jan 4 13:02:23 2000
- Orig file:
v2.3.35/linux/fs/udf/inode.c
- Orig date:
Tue Nov 23 22:42:21 1999
diff -u --recursive --new-file v2.3.35/linux/fs/udf/inode.c linux/fs/udf/inode.c
@@ -1147,19 +1147,18 @@
}
case FILE_TYPE_BLOCK:
{
- inode->i_op = &blkdev_inode_operations;
inode->i_mode |= S_IFBLK;
break;
}
case FILE_TYPE_CHAR:
{
- inode->i_op = &chrdev_inode_operations;
inode->i_mode |= S_IFCHR;
break;
}
case FILE_TYPE_FIFO:
{
- init_fifo(inode);
+ init_special_inode(inode, inode->i_mode|S_FIFO, 0);
+ break;
}
case FILE_TYPE_SYMLINK:
{
@@ -1185,9 +1184,9 @@
if (dsea)
{
- inode->i_rdev = to_kdev_t(
- (le32_to_cpu(dsea->majorDeviceIdent)) << 8) |
- (le32_to_cpu(dsea->minorDeviceIdent) & 0xFF);
+ init_special_inode(inode, inode->i_mode,
+ ((le32_to_cpu(dsea->majorDeviceIdent)) << 8) |
+ (le32_to_cpu(dsea->minorDeviceIdent) & 0xFF));
/* Developer ID ??? */
udf_release_data(tbh);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)