JFFS2 cannot even initialize

gagneraud christian cgagneraud at anfora.fr
Fri Jun 21 04:20:01 EDT 2002


Le jeu 20/06/2002 à 19:52, Jörn Engel a écrit :
> On Thu, 20 June 2002 19:16:43 +0200, gagneraud christian wrote:
> > Le jeu 20/06/2002 à 18:46, Jörn Engel a écrit :
> > > After merging current JFFS2 with our kernel again, I tripped over the
> > > first sanity check in super-v24.c. Here is the dmesg:
> > > JFFS2 error: struct jffs2_sb_info (376 bytes) doesn't fit in the super_block union (272 bytes)
> > > 
> > > Is this a known issue? What do I do?
> > > 
> > > Jörn
> > i use JFFS2 CVS code on a 2.4.4linux and i've had to modify
> > include/linux/fs.h:
> > ----8<-------8<-------8<-------8<-------8<-------8<-------8<-------8<---
> diff -Naur linux-2.4.4-2002-03-21/include/linux/fs.h
> linux-denx-2.4.4-20020321-edu/include/linux/fs.h
> --- linux-2.4.4-2002-03-21/include/linux/fs.h   Mon Apr 30 01:15:31 2001
> +++ linux-denx-2.4.4-20020321-edu/include/linux/fs.h    Thu Apr 25
> 19:12:28 2002
> @@ -296,6 +296,7 @@
>  #include <linux/ncp_fs_i.h>
>  #include <linux/proc_fs_i.h>
>  #include <linux/usbdev_fs_i.h>
> +#include <linux/jffs2_fs_i.h>
> 
>  /*
>   * Attribute flags.  These should be or-ed together to figure out what
> @@ -461,6 +462,7 @@
>                 struct proc_inode_info          proc_i;
>                 struct socket                   socket_i;
>                 struct usbdev_inode_info        usbdev_i;
> +               struct jffs2_inode_info         jffs2_i;
>                 void                            *generic_ip;
>  
>  extern struct list_head super_blocks;
>  
> @@ -689,6 +692,7 @@
>                 struct udf_sb_info      udf_sb;
>                 struct ncp_sb_info      ncpfs_sb;
>                 struct usbdev_sb_info   usbdevfs_sb;
> +               struct jffs2_sb_info    jffs2_sb;
>                 void                    *generic_sbp;
>         } u;
>         /*
> > ----8<-------8<-------8<-------8<-------8<-------8<-------8<-------8<---
> > 
> > hope this help.
> 
> It sure did. Thanks a lot!
> 
> Jörn
> 
> -- 
> Perfection (in design) is achieved not when there is nothing more to
> add, but rather when there is nothing more to take away.
> -- Eric Raymond in "The cathedral and the bazaar"
> 
-- 
/**********************************************
* Christian Gagneraud
***********************************************
* cgagneraud at anfora.fr
***********************************************
* ANFORA
* bat Actys, Voie3
* 31313 Labège Innopole
* FRANCE
***********************************************/





More information about the linux-mtd mailing list