[2.1.51] Really strange ext2 dup.

Aaron Tiensivu (tiensivu@pilot.msu.edu)
Wed, 20 Aug 1997 10:56:13 -0400


Can anyone explain this? e2fsck doesn't find anything wrong.. and the kernel
seems happy with it, but any type of file operation shows 2 instances, ONLY
in this directory.

I can rename the files and the renamed version of the file will only have
one entry.

Rename the file back to the original name, and you get 2 entries.

See below:
lucretia:/var/adm# ls -al
total 5180
drwxr-xr-x 8 root root 4096 Jul 4 14:36 ./
drwxr-xr-x 16 root root 4096 Nov 14 1996 ../
-rw-r----- 1 root root 0 May 7 1996 cron
-rw-r--r-- 1 root root 82314 Aug 20 01:27 debug
-rw-r--r-- 1 root root 82314 Aug 20 01:27 debug
drwxr-xr-x 2 root root 4096 May 7 1996 disk_contents/
-rw-r----- 1 root root 16288 Aug 20 10:47 lastlog
-rw-r--r-- 1 root root 473590 Aug 20 10:04 messages
-rw-r--r-- 1 root root 473590 Aug 20 10:04 messages
drwxr-xr-x 2 root root 4096 Sep 5 1996 mount/
drwxr-xr-x 2 root root 4096 May 7 1996 packages/
-rw------- 1 root root 1007686 Aug 20 08:25 pop
drwxrwxrwx 2 root root 4096 May 7 1996 removed_scripts/
drwxr-xr-x 2 root root 4096 May 7 1996 scripts/
drwxr-xr-x 2 root root 4096 May 7 1996 setup/
-rw-r--r-- 1 root root 451699 Aug 20 01:26 syslog
-rw-r--r-- 1 root root 451699 Aug 20 01:26 syslog
-rw-r----- 1 root root 1232 Jul 26 10:09 utmp
-rw-r----- 1 root root 2181480 Aug 20 10:47 wtmp
-rw-r----- 1 root users 0 Jul 3 09:49 xferlog
lucretia:/var/adm# find . -name "messages" -print
./messages
./messages
lucretia:/var/adm# mv messages messages.old
lucretia:/var/adm# ls -al
/bin/ls: messages: No such file or directory
total 4712
drwxr-xr-x 8 root root 4096 Aug 20 10:52 ./
drwxr-xr-x 16 root root 4096 Nov 14 1996 ../
-rw-r----- 1 root root 0 May 7 1996 cron
-rw-r--r-- 1 root root 82314 Aug 20 01:27 debug
-rw-r--r-- 1 root root 82314 Aug 20 01:27 debug
drwxr-xr-x 2 root root 4096 May 7 1996 disk_contents/
-rw-r----- 1 root root 16288 Aug 20 10:47 lastlog
-rw-r--r-- 1 root root 473590 Aug 20 10:04 messages.old
drwxr-xr-x 2 root root 4096 Sep 5 1996 mount/
drwxr-xr-x 2 root root 4096 May 7 1996 packages/
-rw------- 1 root root 1007686 Aug 20 08:25 pop
drwxrwxrwx 2 root root 4096 May 7 1996 removed_scripts/
drwxr-xr-x 2 root root 4096 May 7 1996 scripts/
drwxr-xr-x 2 root root 4096 May 7 1996 setup/
-rw-r--r-- 1 root root 451699 Aug 20 01:26 syslog
-rw-r--r-- 1 root root 451699 Aug 20 01:26 syslog
-rw-r----- 1 root root 1232 Jul 26 10:09 utmp
-rw-r----- 1 root root 2181480 Aug 20 10:47 wtmp
-rw-r----- 1 root users 0 Jul 3 09:49 xferlog
Note the error from ls above..
lucretia:/var/adm# mv messages.old messages
lucretia:/var/adm# ls -al
total 5180
drwxr-xr-x 8 root root 4096 Aug 20 10:54 ./
drwxr-xr-x 16 root root 4096 Nov 14 1996 ../
-rw-r----- 1 root root 0 May 7 1996 cron
-rw-r--r-- 1 root root 82314 Aug 20 01:27 debug
-rw-r--r-- 1 root root 82314 Aug 20 01:27 debug
drwxr-xr-x 2 root root 4096 May 7 1996 disk_contents/
-rw-r----- 1 root root 16288 Aug 20 10:47 lastlog
-rw-r--r-- 1 root root 473590 Aug 20 10:04 messages
-rw-r--r-- 1 root root 473590 Aug 20 10:04 messages
drwxr-xr-x 2 root root 4096 Sep 5 1996 mount/
drwxr-xr-x 2 root root 4096 May 7 1996 packages/
-rw------- 1 root root 1007686 Aug 20 08:25 pop
drwxrwxrwx 2 root root 4096 May 7 1996 removed_scripts/
drwxr-xr-x 2 root root 4096 May 7 1996 scripts/
drwxr-xr-x 2 root root 4096 May 7 1996 setup/
-rw-r--r-- 1 root root 451699 Aug 20 01:26 syslog
-rw-r--r-- 1 root root 451699 Aug 20 01:26 syslog
-rw-r----- 1 root root 1232 Jul 26 10:09 utmp
-rw-r----- 1 root root 2181480 Aug 20 10:47 wtmp
-rw-r----- 1 root users 0 Jul 3 09:49 xferlog
lucretia:/var/adm#

"Thou shall not have a sane file system today either"