lkml.org 
[lkml]   [1998]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: VFAT patch (Re: 2.1.114: VFAT corrupts first block of a file)
From
Date
Gordon,

I've applied your second patch but now I'm getting a filesystem panic.

Please try something like this on a VFAT drive:

echo "a" > A
mv A a (this will fail)
mv A x
mv x a
vi a

Aug 11 17:35:09 laetitia kernel: Filesystem panic (dev 03:01).
Aug 11 17:35:09 laetitia kernel: fat_free: deleting beyond EOF
Aug 11 17:35:09 laetitia kernel: File system has been set read-only

Markus

> > OR
> >
> > - you haven't cleared "inode->i_nlink" when you marked the old inode
> > deleted, so the VFS layer doesn't know that it should call the delete
> > function..
> >
> > The i_nlink thing looks like the more likely suspect.
>
> Indeed. I couldn't figure out how to get the system from reusing the
> inode, and clear_inode(old_inode) was the only thing I could get to work.
> Clearing old_inode->i_nlink also works, and since it is the correct way,
> here is a patch to apply over the previously applied patch.

-
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.altern.org/andrebalsa/doc/lkml-faq.html

\
 
 \ /
  Last update: 2005-03-22 13:43    [W:0.062 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site