VFAT fs anomaly

Joe Konopka (jkonopka@itol.com)
Sun, 21 Jun 1998 13:07:03 -0500 (CDT)


I found this by accident in 2.1.106ac3 -- 2.0.34 does not exhibit this
behavior. Have not tested with any other 2.1 kernel but I'm able to if
need be.

/dos/e is /dev/hda5 mounted with VFAT fs.

Script started on Sun Jun 21 12:55:24 1998
insight23:/dos/e# mkdir testdir
insight23:/dos/e# cd testdir
insight23:/dos/e/testdir# touch .file.
insight23:/dos/e/testdir# ls -al
total 64
drwxr-xr-x 2 root root 32768 Jun 21 12:55 .
drwxr-xr-x 13 root root 16384 Jun 21 12:55 ..
-rwxr-xr-x 1 root root 0 Jun 21 12:55 .file
insight23:/dos/e/testdir# rm .file
rm: .file: No such file or directory
insight23:/dos/e/testdir# rm .file.
rm: .file.: No such file or directory
insight23:/dos/e/testdir# cd ..
insight23:/dos/e# rmdir testdir
rmdir: testdir: Directory not empty
insight23:/dos/e# cd testdir
insight23:/dos/e/testdir# ls -la
total 64
drwxr-xr-x 2 root root 32768 Jun 21 12:55 .
drwxr-xr-x 13 root root 16384 Jun 21 12:55 ..
-rwxr-xr-x 1 root root 0 Jun 21 12:55 .file
insight23:/dos/e/testdir# rm .file
insight23:/dos/e/testdir# cd ..
insight23:/dos/e# rmdir testdir
insight23:/dos/e# exit
Script done on Sun Jun 21 12:56:04 1998

I understand that VFAT likes to strip trailing dots, that's not the
problem, it's that the file becomes undeletable until I attempt to rmdir
the directory. If I put some text into ".file." I can cat it, vi it, etc,
but cannot delete it until after I attempt to rmdir the directory. Also,
under some circumstances which I've yet to be able to reproduce (not
having put a lot of effort into it), it's possible to get more than one of
these in a directory with the same name. Scandisk complains about that
and cleans them up, under Linux the only way to remove them is to delete
one, rmdir the directory (fails), delete another one, and repeat until
they're gone.

I hope I'm not missing something obvious, but I just noticed this and
wanted to make sure that if it is a problem, it doesn't make its way into
2.2...

-----------
Joe Konopka
System Administrator, Infinity Technology Inc.
Phone: (920) 430-1117
Email: jkonopka@itol.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu