On Sun, Jan 3, 2010 at 1:08 AM, Arun S <[email protected]> wrote:
> Hi,
>  I have couple of doubts regarding jffs2 filesystem.
>
> 1. I've found instances of writing mtd partitions with dd (like dd
> if=rootfs.jffs2 of=/dev/mtd...) and another method is to use flash_erase
> /dev/mtd.. and then copying rootfs.jffs2 to /dev/mtd.. using cp command
> followed by sync. What is the difference between these two?.
cp uses buffered write.


> 2. How jffs2 works? I mean if my root partition is jffs2, if I access some
> files, is it accessed real-time from the flash device?
>
Yes. But there might be some caching involved(in buffered read/writes eg.cp).

>  OR
>
> Does the kernel uncompress the jffs2 partition and stores it in memory
> during boot and access it from there when a read request comes?
No

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to