Linux' vfat filesystem bug

Gordon Chaffee (chaffee@plateau.CS.Berkeley.EDU)
Mon, 2 Jun 1997 04:52:26 -0700 (PDT)


Vladimir Volovich (vvv@vvv.vsu.ru) writes:
> There is a bug in a vfat drivers:
>
> vvv:/dosc/test# echo aaa > filename
> vvv:/dosc/test# echo bbbb > filename.
> vvv:/dosc/test# echo ccc > longfilename
> vvv:/dosc/test# echo dddd > longfilename.
> vvv:/dosc/test# ls -l
> total 32
> -rw-r--r-- 1 root root 5 Jun 1 17:21 filename
> -rw-r--r-- 1 root root 5 Jun 1 17:21 filename
> -rw-r--r-- 1 root root 4 Jun 1 17:21 longfilename
> -rw-r--r-- 1 root root 5 Jun 1 17:21 longfilename.

This bug was reported some time ago, and I fixed it in my source tree,
but it hasn't been updated in any development kernel. If you want a
fix to it, it is included in my fat32 patch which can be found on

http://bmrc.berkeley.edu/people/chaffee/fat32.html

There are patches for the 2.0.x series, and the latest 2.1.x patch is
made against 2.1.42. The patch will hopefully appear in a new standard
Linux kernel distribution soon.

- Gordon