public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: David Woodhouse <dwmw2@infradead.org>
To: jmrobert5@mchsi.com
Cc: linux-mtd@lists.infradead.org
Subject: Re: Losing inodes in DOC2000 w/ext2 fs?
Date: Wed, 14 Apr 2004 13:50:22 -0400	[thread overview]
Message-ID: <1081965021.6169.19.camel@lapdancer.baythorne.internal> (raw)
In-Reply-To: <041420041712.17158.34@mchsi.com>

On Wed, 2004-04-14 at 17:12 +0000, jmrobert5@mchsi.com wrote:
> I have been having an issue with a ext2 fs on a DOC2000.  If I overwrite a file
> being marked as used by a process (such as a lib), the file is cached and then
> later flushed at a reboot.  But then there are many unused inodes hanging
> around.  The result is my flash upgrades leave many inodes marked as being used,
> using more space.

This is a symptom of improper shutdowns with a non-journalling file
system. The space taken by these inodes should be reclaimed when you
fsck, surely?

> Is this another effect that is talked about in the FAQ?  Or the real question,
> is this a file system issue, or an MTD doc driver issue?  The FAQ leads me to
> believe its a ext2 issue.

Using ext3 would solve it, at a high cost. Because ext3 does journalling
at the block device layer, it means all metadata changes are written
_twice_ to the flash.

> Will using JFFS2 solve this problem?

Yes. We need to update the new DiskOnChip driver to handle bad blocks
(and preferably hardware ECC) first, but I've had this working.

-- 
dwmw2

      reply	other threads:[~2004-04-14 17:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-14 17:12 Losing inodes in DOC2000 w/ext2 fs? jmrobert5
2004-04-14 17:50 ` David Woodhouse [this message]

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=1081965021.6169.19.camel@lapdancer.baythorne.internal \
    --to=dwmw2@infradead.org \
    --cc=jmrobert5@mchsi.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