Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.3.48 /fs/bad_inode.c

Filename:/fs/bad_inode.c
Lines Added:15
Lines Deleted:15
Also changed in: (Previous) 2.3.43  2.3.38  2.3.30  2.3.9  2.3.7  2.0.32 
(Following) 2.3.99-pre4  2.3.99-pre6  2.5.51 

Location
[  2.3.48
  [  fs
     o  bad_inode.c

Patch

diff -u --recursive --new-file v2.3.47/linux/fs/bad_inode.c linux/fs/bad_inode.c
--- v2.3.47/linux/fs/bad_inode.c   Thu Feb 10 17:11:16 2000
+++ linux/fs/bad_inode.c   Sat Feb 26 20:33:04 2000
@@ -47,21 +47,20 @@
 
 struct inode_operations bad_inode_ops =
 {
-   &bad_file_ops,      /* default file operations */
-   EIO_ERROR,      /* create */
-   EIO_ERROR,      /* lookup */
-   EIO_ERROR,      /* link */
-   EIO_ERROR,      /* unlink */
-   EIO_ERROR,      /* symlink */
-   EIO_ERROR,      /* mkdir */
-   EIO_ERROR,      /* rmdir */
-   EIO_ERROR,      /* mknod */
-   EIO_ERROR,      /* rename */
-   EIO_ERROR,      /* readlink */
-   bad_follow_link,   /* follow_link */
-   EIO_ERROR,      /* truncate */
-   EIO_ERROR,      /* permission */
-   EIO_ERROR      /* revalidate */
+   create:      EIO_ERROR,
+   lookup:      EIO_ERROR,
+   link:      EIO_ERROR,
+   unlink:      EIO_ERROR,
+   symlink:   EIO_ERROR,
+   mkdir:      EIO_ERROR,
+   rmdir:      EIO_ERROR,
+   mknod:      EIO_ERROR,
+   rename:      EIO_ERROR,
+   readlink:   EIO_ERROR,
+   follow_link:   bad_follow_link,
+   truncate:   EIO_ERROR,
+   permission:   EIO_ERROR,
+   revalidate:   EIO_ERROR,
 };
 
 
@@ -78,6 +77,7 @@
    inode->i_mode = S_IFREG;
    inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME;
    inode->i_op = &bad_inode_ops;   
+   inode->i_fop = &bad_file_ops;   
 }
 
 /*


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.