2.1.114: VFAT corrupts first block of a file

david parsons (k3040e4@c210.edvz.uni-linz.ac.at)
Wed, 5 Aug 1998 05:02:04 +0200 (METDST)


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),
type ":n" and ":q" in vi and carefully watch the file contents.

FYI, this is what my mount says:
/dev/hda1 on /DOS/c type vfat (rw,low,nonumtail,uid=35,gid=35,umask=002,showexec)

Markus

#!/bin/sh

# try any of these editors
vi="/usr/bin/vim"
vi="/bin/vi"

echo "aaaa" > a0
echo "bbbb" > b0
$vi a0 b0
mv a0 a1
mv b0 b1
$vi a1 b1
mv a1 a2
mv b1 b2
$vi a2 b2

-
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