Linux-kernel mailing list archive 1998-31,: VFAT patch (Re: 2.1.114: VFAT corrupts first block of a file)

# VFAT patch (Re: 2.1.114: VFAT corrupts first block of a file)

Gordon Chaffee (chaffee@cs.berkeley.edu)
Sat, 8 Aug 1998 03:19:40 -0700 (PDT)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Lorenzo M. Catucci: "Kernel 2.0.35 and 36pre2 not starting up"
- Previous message: Guest section DW: "Re: char-major-4 and 2.1.115"
- Next in thread: Alan Cox: "Re: VFAT patch (Re: 2.1.114: VFAT corrupts first block of a file)"
- Reply: Alan Cox: "Re: VFAT patch (Re: 2.1.114: VFAT corrupts first block of a file)"
- Reply: Linus Torvalds: "Re: VFAT patch (Re: 2.1.114: VFAT corrupts first block of a file)"

Markus <markus.oberhumer@jk.uni-linz.ac.at> writes:
> I'm experiencing strange corruptions of the first block of a file
> mounted on a VFAT drive in the kernel 2.1.x series (up to 2.1.114).
>
> Please run this little script on a VFAT drive (empty directory),

Thanks for the very clear script. This patch should fix the problem.
Unless there is some other type of corruption I'm not aware of, I think
that takes care of one of the showstoppers that I saw on Alan's list.

- Gordon

--- linux-2.1.115-clean/fs/vfat/namei.c Tue Jul 28 10:17:49 1998
+++ linux/fs/vfat/namei.c Sat Aug 8 03:09:01 1998
@@ -1822,6 +1822,8 @@
put_new_inode = 0;
}
+ clear_inode(old_inode);
+
rename_done:
if (locked)
fat_unlock_creation();

-
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

- Next message: Lorenzo M. Catucci: "Kernel 2.0.35 and 36pre2 not starting up"
- Previous message: Guest section DW: "Re: char-major-4 and 2.1.115"
- Next in thread: Alan Cox: "Re: VFAT patch (Re: 2.1.114: VFAT corrupts first block of a file)"
- Reply: Alan Cox: "Re: VFAT patch (Re: 2.1.114: VFAT corrupts first block of a file)"
- Reply: Linus Torvalds: "Re: VFAT patch (Re: 2.1.114: VFAT corrupts first block of a file)"