All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Miguel Blanco" <mblancom@gmail.com>
To: "David Woodhouse" <dwmw2@infradead.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: problem mounting a jffs2 filesystem
Date: Tue, 7 Mar 2006 02:15:43 +0100	[thread overview]
Message-ID: <8766c4ce0603061715t7a0c2aacg@mail.gmail.com> (raw)
In-Reply-To: <1141652131.4110.47.camel@pmac.infradead.org>

Yes, It works now with the patch !!!

Thank you.

Miguel.

2006/3/6, David Woodhouse <dwmw2@infradead.org>:
> On Sun, 2006-03-05 at 14:04 +0100, Miguel Blanco wrote:
> >  divide error: 0000 [#1]
> >  EIP is at jffs2_scan_medium+0xdf/0x55e [jffs2]
>
> Can you try it with the attached patch? Or turn off
> CONFIG_JFFS2_FS_WRITEBUFFER
>
> --
> dwmw2
>
>
>
> ---------- Mensaje reenviado ----------
> From: David Woodhouse <dwmw2@infradead.org>
> To: linux-mtd-cvs@lists.infradead.org
> Date: Thu, 09 Feb 2006 16:13:01 +0000
> Subject: mtd/fs/jffs2 scan.c,1.134,1.135
> Update of /home/cvs/mtd/fs/jffs2
> In directory phoenix.infradead.org:/tmp/cvs-serv28853
>
> Modified Files:
>         scan.c
> Log Message:
> Avoid divide-by-zero
>
> Index: scan.c
> ===================================================================
> RCS file: /home/cvs/mtd/fs/jffs2/scan.c,v
> retrieving revision 1.134
> retrieving revision 1.135
> diff -u -r1.134 -r1.135
> --- scan.c      13 Jan 2006 10:25:29 -0000      1.134
> +++ scan.c      9 Feb 2006 16:12:59 -0000       1.135
> @@ -239,7 +239,7 @@
>                 c->nextblock->dirty_size = 0;
>         }
>  #ifdef CONFIG_JFFS2_FS_WRITEBUFFER
> -       if (!jffs2_can_mark_obsolete(c) && c->nextblock && (c->nextblock->free_size % c->wbuf_pagesize)) {
> +       if (!jffs2_can_mark_obsolete(c) && c->wbuf_pagesize && c->nextblock && (c->nextblock->free_size % c->wbuf_pagesize)) {
>                 /* If we're going to start writing into a block which already
>                    contains data, and the end of the data isn't page-aligned,
>                    skip a little and align it. */
>
>
> __________________________________________________________
> Linux-MTD CVS commit list
> http://lists.infradead.org/mailman/listinfo/linux-mtd-cvs/
>
>
>

  reply	other threads:[~2006-03-07  1:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-05 13:04 problem mounting a jffs2 filesystem Miguel Blanco
2006-03-06 13:28 ` Josh Boyer
2006-03-06 13:28   ` Josh Boyer
2006-03-06 13:35 ` David Woodhouse
2006-03-07  1:15   ` Miguel Blanco [this message]
2006-03-08 22:07   ` Adrian Bunk
2006-03-09  2:18     ` Josh Boyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8766c4ce0603061715t7a0c2aacg@mail.gmail.com \
    --to=mblancom@gmail.com \
    --cc=dwmw2@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.