From: Matthieu CASTET <matthieu.castet@parrot.com>
To: linux-mtd@lists.infradead.org
Subject: jffs2 sumtool bug ?
Date: Wed, 23 May 2007 10:10:06 +0200 [thread overview]
Message-ID: <4653F6DE.1090105@parrot.com> (raw)
Hi,
In sumtool, in pad_block_if_less_than, we pad and write to a new
eraseblock if "(data_ofs + req > erase_block_size - datasize)".
But datasize = req + the size of the summary node.
So we pad and write to a new eraseblock if there is not the space for
the summary node and (the node we are wanting to write) * 2.
Why the condition isn't "(data_ofs > erase_block_size - datasize)" ?
thanks,
Matthieu
PS : about summary, could the sumtool change the order of the nodes to
avoid to waste too much space. For example if the eraseblock is 16KB and
we have 4 nodes of 4KB. Sumtool will put in the first eraseblock 3
nodes, 4KB will be wasted for the sumary node. In this wasted 4KB, we
could have put smaller nodes.
PS2 : How the kernel implementation does ? Does it try to minimize
summary overhead, by managing to minimize the summary node size ?
next reply other threads:[~2007-05-23 8:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-23 8:10 Matthieu CASTET [this message]
2007-05-23 10:55 ` jffs2 sumtool bug ? 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=4653F6DE.1090105@parrot.com \
--to=matthieu.castet@parrot.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 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.