Just another vfat bug in 2.1.132/2.2.0pre[12] ?

Andrzej Krzysztofowicz (ankry@green.mif.pg.gda.pl)
Wed, 30 Dec 1998 11:17:51 +0100 (CET)


Hi,
It seems to be another fat/vfat bug :

# touch file;mkdir dir;cd dir;mv ../file .
# cd file
bash: file: Not a directory

[ up till now seems to be OK ]

# cd ..
# ls -la . *
.:
total 150
drwxr-xr-x 3 root root 7168 Dec 29 20:47 .
drwxr-xr-x 16 root root 143360 Dec 8 18:39 ..
drwxr-xr-x 2 root root 512 Dec 29 20:47 dir

dir:
total 8
drwxr-xr-x 2 root root 512 Dec 29 20:47 .
drwxr-xr-x 3 root root 7168 Dec 29 20:47 ..
-rw-r--r-- 1 root root 0 Dec 29 20:47 file
# rm -rf dir
rm: dir: Device or resource busy

[ Why ??? ]

# ls -la . *
.:
total 150
drwxr-xr-x 3 root root 7168 Dec 29 20:47 .
drwxr-xr-x 16 root root 143360 Dec 8 18:39 ..
drwxr-xr-x 2 root root 512 Dec 29 20:47 dir

dir:
total 8
drwxr-xr-x 2 root root 512 Dec 29 20:47 .
drwxr-xr-x 3 root root 7168 Dec 29 20:47 ..

Problem does not exist in 2.1.131, 2.1.131ac9, 2.1.131ac13 but appears
in 2.1.132, 2.2.0-pre1, 2.2.0pre1ac1, 2.2.0pre2 and seems to be specyfic
for vfat. No problem observed on fat/ext2/minix.

Umounting/mounting again the filesystem allows to cleanly remove the
directory.

Regards

-- 
=======================================================================
  Andrzej M. Krzysztofowicz               ankry@mif.pg.gda.pl
  tel.  (0-58) 347 14 61
Wydz.Fizyki Technicznej i Matematyki Stosowanej Politechniki Gdanskiej

- 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.tux.org/lkml/