Hi Members

 

I found there are duplicate files in the same directory when I using Yaffs2 on Nandflash, see below:

/ # ls -l /flash

drwxrwx--x    1 root     999           2048 Jan  1  1970 applications

-rw-rw-rw-    1 1007     0             5120 Jan  1  1970 assetdb.db

drwxr-xr-x    1 root     0             2048 Jul  2 19:33 clients

-rwxrwxrwx    1 root     0           249028 Jan  2  1970 dbench

drwxrwxrwx    1 root     0             2048 Jan  1  1970 ddman

drwxrwxr-x    1 root     0             2048 Jan  1  1970 fatalerrorlog

drwx-w----    1 root     0             2048 Jan  1  1970 lost+found

drwxrwx--x    1 root     0             2048 Jan  1  1970 services

-rw-rw-r--    1 1002     0           200267 Jul  2 10:25 settings2.xml

-rw-rw-r--    1 1002     0           200267 Jul  2 10:25 settings2.xml

-rw-rw-r--    1 1002     0           200267 Jul  2 10:25 settings2.xml

-rw-rw-rw-    1 1012     0           379904 Jul  2 10:25 si_db.sqlite

 

mount

rootfs on / type rootfs (rw)

/dev/root on / type squashfs (ro,relatime)

/dev/mtdblock9 on /flash type yaffs2 (rw,nosuid,nodev,noexec,relatime)

 

There are 3 setting2.xml in /flash.

I searched the “yaffs Archives” ,and found:

On 2011-04-14, there is a similar problem committed by Mark Whitney, but finally no solution.

http://lists.aleph1.co.uk/lurker/message/20110707.153355.6da07434.en.html

 

On 2014-12-10, Rob Calhoun also met the duplicate files, but can’t determine it is due to mtd or yaffs.

http://lists.aleph1.co.uk/lurker/message/20150111.220210.44fc29fc.en.html

 

Anyone has the update for this problem? Is there the patch to fix the issue?

My Yaffs2 version is bc76682d93955cfb33051beb503ad9f8a5450578

 

B.R.

Tiger Yu