only the last 2 files/folders exist after umount yaffs2 filesystem

Amit Kumar Sharma amitsharma.9 at samsung.com
Mon Sep 29 03:26:37 EDT 2008


Hi Zhang

Better to discuss with Yaffs2 guys because as far i can say 
Samsung driver is not related to this issue.

Rgs
Amit
----- Original Message ----- 
From: "zhang y" <hitwmt at gmail.com>
To: <linux-mtd at lists.infradead.org>
Sent: Monday, September 29, 2008 10:52 AM
Subject: only the last 2 files/folders exist after umount 
yaffs2 filesystem


> hi there
>
> I am using yaffs2 under linux 2.6.9 on EP9302 board, and 
> there is a
> samsung nand flash K9F2G08(256M, 2k+64) on the board.
>
> Now I can mount yaffs2 and create, delete file and folder, 
> but when I
> umount and then mount it again, I can only find the last 
> two
> file/folder there.
>
>
> for example:
>
> #mount -t yaffs2 /dev/mtdblock5 /mnt
> #cd /mnt
> #ls
> lost_found
> #mkdir 1 2 3 4        <=============here, I create 4 
> folders
> #ls
> lost-found 1 2 3 4
> #cd ..
> #umount /mnt
>
> Now I will re-mount the yaffs2
> #mount -t yaffs2 /dev/mtdblock5 /mnt
> #ls /mnt
> lost_found 3 4       <=============here, I can only get 
> the last two folder
>
>
> and, I have try many times and got the same appearance,The 
> filesystem
> just only save the last 2 files/folders on my board.
>
> btw, I have use jffs2 on the board, it works well except 
> the bad speed.
>
> So, anybody can give me some advice? I will really 
> appreciate that!
>
> Thanks in advance!
>
> zhang y
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/ 





More information about the linux-mtd mailing list