[Yaffs] problem in creating many files on sub directory

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: noguchi
Date:  
To: yaffs
Subject: [Yaffs] problem in creating many files on sub directory
Now I'm trying YAFFS2 with the kernel builted from OpenWrt git trunk tree.
Its kernel revision is 3.14.27 and target architechture is ARMv7.

The yaffs2 codes are based git commit:
> Version: bc76682d93955cfb33051beb503ad9f8a5450578 (2013-12-03)



When I tried creating 1024 files with the following script,
the problem occurred.
- Number of files listed with "find /mnt/TEMP -type f" is 1022.
- file1.bin and file2.bin are lost.

It seems that number of d-entries in a sub directory is limitted up to 1024.
(1024 - 1022 = 2, used for "." and "..")


But, with linux-3.2.26, tbe above problem does not occur.
1024 files were created surely.


Any suggestion to investigate this problem ?


script:
~~~~~~~~~~~
flash_eraseall /dev/mtd6
mount -t yaffs2 -o inband-tags,noatime /dev/mtdlock6 /mnt
mkdir /mnt/TEMP
for ii in `seq 1 1024`
do
        touch /mnt/TEMP/file"$ii".bin
done
~~~~~~~~~~~



And, volume /mnt have enough rooms to create 1024 empty files.

output by "df -k":
/dev/mtdblock6         1958400     13280   1945120   1% /mnt