public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Marco Braga <marco.braga@gmail.com>
To: linux-mtd@lists.infradead.org
Subject: JFFS2 losing files on mount
Date: Wed, 21 Jan 2009 10:29:05 +0100	[thread overview]
Message-ID: <d459bb380901210129sb54eb47j2a67a11710f185b5@mail.gmail.com> (raw)

Hi,

I am doing some power failure tests on an ARM7 based device using
JFFS2 on NAND flash and I am a bit disappointed by the early results.
At the moment I've done only some informal tests so I don't have a
detailed bug report or logs to provide. Information gathered on the
net gave me the impression that JFFS2 could withstand repeated power
failures without major damages. Losing last written data is not a
problem, but preserving filesystem consistency is.

The worst situation happened to me is a JFFS2 file system that keeps
loosing files after mount. This is what happened: After a lot of power
cycles, errors during mount are increasing (nothing really strange:
lost inodes, ECC errors, etc.), but infos on the internet say that
they must be considered "warnings". After last reboot, all the files
in the JFFS2 partition are lost on mount. Not a good situation...
I copy some more files in the fs, without any apparent problem. If I
read back them, they are ok. I sync the file system, check the files
again. Everything seems fine. Then I umount the partition, and mount
it back again. The same errors appear and the content of the file
system is lost again. All previous files are lost. This happened every
time I retried the same thing on that partition. At the end I had to
erase the partition and rebuild the JFFS2 file system again.

Disappearing file is not a good thing, but a filesystem that loses all
files every time it is mounted is even worse.

I'd like to hear your experiences. What do you think?

Regards,
Marco

             reply	other threads:[~2009-01-21  9:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-21  9:29 Marco Braga [this message]
2009-01-21 15:05 ` JFFS2 losing files on mount Ricard Wanderlof
2009-01-22  4:03   ` David Woodhouse
2009-01-22  6:33     ` Ricard Wanderlof
2009-01-22  6:36       ` David Woodhouse

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=d459bb380901210129sb54eb47j2a67a11710f185b5@mail.gmail.com \
    --to=marco.braga@gmail.com \
    --cc=linux-mtd@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox