[Yaffs] Re: set of patches for yaffs on Linux 2.6.9

Frank Rowand frowand@mvista.com
Wed, 22 Dec 2004 13:31:48 -0800


Frank Rowand wrote:
> I am submitting a set of patches that enabled me to get yaffs
> working on Linux 2.6.9.  (Not vanilla 2.6.9, but 2.6.9 plus
> a few changes, but I don't think the changes matter in this
> context.)
> 
> Please add any of these changes back into yaffs as appropriate,
> and provide comments as needed.
> 
> I have compiled for x86 RAM based yaffs (but not tested) and
> for ARM little endian MTD based yaffs.  I have compiled as
> in-kernel and as modules (but have not loaded the module
> version).  The ARM version has been through basic crash
> and burn testing, but I have not yet begun serious testing.
> 
> The changes are broken into a series of patches to isolate
> the different types of changes, and will each be sent in
> a following email.  The patches apply in the following
> order:
> 
> patches/yaffs_kernel_01_base.patch 

> yaffs_kernel_02_fixup_in_kernel_tree.patch

> yaffs_kernel_03_fix_warnings.patch

> yaffs_kernel_04_disable_no_page_cache.patch

> yaffs_kernel_05_64bit_target.patch

> yaffs_kernel_06_kdevname.patch

> yaffs_kernel_07_kill_sb.patch

< patch details deleted >

One more patch:

yaffs_kernel_08_loop_mount.patch

A new function (sendfile) has been added in 2.6 to the
struct file_operations that is required for mounting via
the loop device.  This patch adds sendfile to yaffs.

An example of loopback mounting is:

    > mount -t yaffs /dev/mtdblock/8 my_yaffs_fs
    yaffs: dev is 31.8 name is "mtdblock8"
    > mount -t cramfs -o loop my_yaffs_fs/my_cramfs_fs_image  my_cramfs_fs

    > umount -d my_cramfs_fs
    > umount my_yaffs_fs


The patch will be sent in a separate email.


-Frank
-- 
Frank Rowand <frank_rowand@mvista.com>
MontaVista Software, Inc