jffs2_truncate_fragtree does not handle NULL return from jffs2_lookup_node_frag

Dragan Marinkovic marinkovic.dragan at gmail.com
Wed Nov 22 13:50:53 EST 2006


On 11/22/06, Artem Bityutskiy <dedekind at infradead.org> wrote:
> On Wed, 2006-11-22 at 08:49 -0800, Dragan Marinkovic wrote:
> > Thanks Artem, I'll take a look.
> >
> > "JFFS2 partition is being updated" means that the file has been
> > written to at the moment of the power loss. What's interesting is that
> > if I'm writing 1MB file to the JFFS2 partition (which gives me enough
> > time to reliably pull the plug during write operation) the power loss
> > is always handled properly: the old version of the file is always
> > there when the power is back on.
> >
> > To be more precise, I have trouble with the file size of about 11K
> > (this really isn't any magic number, basically smaller files). I have
> > /tmp dir. on tmpfs . I'm moving the file there, doing some
> > manipulation on it (sed, cat, etc.) and copy the file back to its
> > original location (JFFS2 fs). If I experience the power loss at the
> > moment of the file copy operation, the file just vanishes. The same is
> > true if the file is manipulated directly on the JFFS2 partition. I've
> > tried 'mv', 'cat' and 'cp' -- all with the same result.
> >
> > The erase block size on the JFFS2 partition is set to 128K (131072
> > bytes) . I can post USB stick and kernel config specific details if
> > needed.
>
> USB stick? How do you use JFFS2 on USB stick? Do you use block2mtd?
>
> --
> Best regards,
> Artem Bityutskiy (Битюцкий Артём)
>
>

That is correct -- I'm using block2mtd .

Cheers,
Dragan


More information about the linux-mtd mailing list