[Yaffs] Trouble with multiple files with the same name...

Livio Tenze livio.tenze at enteos.it
Mon May 8 08:49:49 BST 2006


>On Saturday 06 May 2006 02:43, Livio Tenze wrote:
>>/ Hi all,
/>>/
/>>/ I found a strange behaviour of the yaffs filesystem.
/>>/ I mounted my nand device, then  I wrote the data. Finally I executed
/>>/ some executables. All seems to work fine.
/>>/ When I reboot my board and try to run again my executables, thera are
/>>/ some problems. In particular I find that there are multiple files with
/>>/ the same name within a directory... I cannot delete them.
/>>/ ls -la
/>>/ -rw-r--r--    1 root     root           70 Jan  1 00:01
/>>/ defaultbuttons_new.conf
/>>/ -rw-r--r--    1 root     root           70 Jan  1 00:01
/>>/ defaultbuttons_new.conf
/>>/ -rw-r--r--    1 root     root           70 Jan  1 00:01
/>>/ defaultbuttons_new.conf
/>>/ -rw-r--r--    1 root     root           70 Jan  1 00:01
/>>/ defaultbuttons_new.conf
/>>/ -rw-r--r--    1 root     root           70 Jan  1 00:01
/>>/ defaultbuttons_new.conf
/
>This is most odd.

>Can you do "ls -ial". This shows inode numbers too which can help a bit.

>It would appear that, for some reason, the previous files have not been marked 
>as deleted.

Hello Charles,

here I attach the ls -ial resutls:
ls -ial
    316 drwxr-xr-x    1 root     root          512 May  4  2006 .
    260 drwxr-xr-x    1 root     root          512 Apr 20  2006 ..
   2662 -rw-r--r--    1 root     root           96 Jan  1 00:01 defaultbuttons_new.conf
   2662 -rw-r--r--    1 root     root           96 Jan  1 00:01 defaultbuttons_new.conf
   2662 -rw-r--r--    1 root     root           96 Jan  1 00:01 defaultbuttons_new.conf
   2662 -rw-r--r--    1 root     root           96 Jan  1 00:01 defaultbuttons_new.conf
   2662 -rw-r--r--    1 root     root           96 Jan  1 00:01 defaultbuttons_new.conf
   2662 -rw-r--r--    1 root     root           96 Jan  1 00:01 defaultbuttons_new.conf
   2662 -rw-r--r--    1 root     root           96 Jan  1 00:01 defaultbuttons_new.conf

Really strange...
Livius




More information about the yaffs mailing list