lkml.org 
[lkml]   [1997]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectLinux' vfat filesystem bug
Hi,

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.
vvv:/dosc/test# cat filename
bbbb
vvv:/dosc/test# cat filename.
cat: filename.: No such file or directory
vvv:/dosc/test# rm filename.
rm: filename.: No such file or directory
vvv:/dosc/test# rm filename
vvv:/dosc/test# ls -l
total 24
-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.
vvv:/dosc/test# cat filename
bbbb

I.e. Linux lets one to create a two files with the same name in one
directory.
This happens when filenames have the form of short MS-DOG filename
without and with a period. To correct this bug, the vfat drivers should
treat names like `file.' as long filenames with trailing period at the
end,
and should distinguish these filenames from names like `file.'.

--
With best regards,
Vladimir.

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