On Friday 25 January 2002 1:45 pm, Mikael Pettersson wrote:
> Duncan Sands writes:
> > I just gave 2.5.2-dj5 a try. On a subsequent reboot and fsck
> > (with a stable kernel), I got a slew of messages about bad inode
> > fsizes on files modified while using 2.5.2-dj5. The partition uses
> > ext2. This is a UP i386 (AMD K6) machine with no other patches.
> > What can I do to help track this down?
>
> I reported this a couple of hours ago for 2.5.3-pre and Al Viro posted
> this patch:
>
> --- C3-pre4/fs/ext2/ialloc.c Wed Jan 23 20:45:32 2002
> +++ /tmp/ialloc.c Thu Jan 24 21:41:52 2002
> @@ -392,6 +392,7 @@
> ei->i_flags &= ~(EXT2_IMMUTABLE_FL|EXT2_APPEND_FL);
> ei->i_faddr = 0;
> ei->i_frag_no = 0;
> + ei->i_frag_size = 0;
> ei->i_osync = 0;
> ei->i_file_acl = 0;
> ei->i_dir_acl = 0;
> --- C3-pre4/fs/ext2/inode.c Wed Jan 23 20:45:32 2002
> +++ /tmp/inode.c Thu Jan 24 21:44:48 2002
> @@ -963,6 +963,7 @@
> ei->i_frag_size = raw_inode->i_fsize;
> ei->i_osync = 0;
> ei->i_file_acl = le32_to_cpu(raw_inode->i_file_acl);
> + ei->i_dir_acl = 0;
> if (S_ISREG(inode->i_mode))
> inode->i_size |= ((__u64)le32_to_cpu(raw_inode->i_size_high)) << 32;
> else
Yes, that was the problem. Thanks for the info, I hadn't spotted the patch.
Duncan.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Thu Jan 31 2002 - 21:00:34 EST