Re: [Yaffs] Trouble with multiple files with the same name..…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Charles Manning
Date:  
To: yaffs
Subject: Re: [Yaffs] Trouble with multiple files with the same name...
On Monday 08 May 2006 19:49, Livio Tenze wrote:
> >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


This is very strange because the inode numbers are the same, so it is the same
object. Somehow the directory has the same object in it many times! I am
quite confused by how this could happen.

What OS? What version of yaffs? Can you send the /proc/yaffs and the uname -a?

-- Charles