RE: [IMPROVED PATCH] devfs symlinks incompatible with cpio

From: Jeremy Fitzhardinge (jeremy@goop.org)
Date: Thu Apr 13 2000 - 15:17:41 EST


On 13-Apr-2000 Jeremy Fitzhardinge wrote:
> Fix attached.

Better fix attached. Symlinks already know their own length.

        J


--- 2.3/fs/devfs/base.c Wed Apr 12 16:08:50 2000
+++ local-2.3/fs/devfs/base.c Thu Apr 13 13:14:41 2000
@@ -2228,6 +2228,9 @@
         inode->i_fop = &devfs_fops;
     } else if (S_ISLNK(di->mode)) {
         inode->i_op = &devfs_symlink_iops;
+
+ if (di->de->registered)
+ inode->i_size = di->de->u.symlink.length;
     } else {
         inode->i_fop = &devfs_fops;
     }

End of MIME message

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:22 EST