From: Artem Bityutskiy <dedekind@infradead.org>
To: Dragan Marinkovic <marinkovic.dragan@gmail.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: jffs2_truncate_fragtree does not handle NULL return from jffs2_lookup_node_frag
Date: Wed, 22 Nov 2006 18:55:17 +0200 [thread overview]
Message-ID: <1164214517.19298.27.camel@sauron> (raw)
In-Reply-To: <d33135570611220849o7775a594o151d02583df9c1e5@mail.gmail.com>
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 (Битюцкий Артём)
next prev parent reply other threads:[~2006-11-22 18:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-22 7:35 jffs2_truncate_fragtree does not handle NULL return from jffs2_lookup_node_frag Dragan Marinkovic
2006-11-22 16:27 ` Artem Bityutskiy
2006-11-22 16:49 ` Dragan Marinkovic
2006-11-22 16:55 ` Artem Bityutskiy [this message]
2006-11-22 18:50 ` Dragan Marinkovic
2006-11-22 17:19 ` Artem Bityutskiy
2006-11-22 17:22 ` Artem Bityutskiy
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=1164214517.19298.27.camel@sauron \
--to=dedekind@infradead.org \
--cc=linux-mtd@lists.infradead.org \
--cc=marinkovic.dragan@gmail.com \
/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.