* Losing inodes in DOC2000 w/ext2 fs?
@ 2004-04-14 17:12 jmrobert5
2004-04-14 17:50 ` David Woodhouse
0 siblings, 1 reply; 2+ messages in thread
From: jmrobert5 @ 2004-04-14 17:12 UTC (permalink / raw)
To: linux-mtd
Hi all,
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.
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.
Will using JFFS2 solve this problem?
Many thanks,
--
Joe Robertson
jmrobert5@mchsi.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Losing inodes in DOC2000 w/ext2 fs?
2004-04-14 17:12 Losing inodes in DOC2000 w/ext2 fs? jmrobert5
@ 2004-04-14 17:50 ` David Woodhouse
0 siblings, 0 replies; 2+ messages in thread
From: David Woodhouse @ 2004-04-14 17:50 UTC (permalink / raw)
To: jmrobert5; +Cc: linux-mtd
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-04-14 17:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-14 17:12 Losing inodes in DOC2000 w/ext2 fs? jmrobert5
2004-04-14 17:50 ` David Woodhouse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox