From: ebiederman@lnxi.com (Eric W. Biederman)
To: David Woodhouse <dwmw2@infradead.org>
Cc: linux-mtd@lists.infradead.org
Subject: Re: Q: Filesystem choice..
Date: 26 Jan 2004 09:20:04 -0700 [thread overview]
Message-ID: <m3ektmbs23.fsf@maxwell.lnxi.com> (raw)
In-Reply-To: <1075109506.19924.45.camel@imladris.demon.co.uk>
David Woodhouse <dwmw2@infradead.org> writes:
> On Mon, 2004-01-26 at 02:23 -0700, Eric W. Biederman wrote:
>
> Fix up some other assumptions about the first byte in any given page
> also being the first byte in a node, and fix up the garbage-collection
> which will need to have enough workspace to decompress and recompress
> the largest block it may encounter, and it should work.
Cool. Then if it comes up I will look.
> > My real question here is how difficult is it to disable compression?
> > Or can compression be deliberately disabled on a per file basis?
>
> It's not too hard. To disable it completely you just need to change a
> few #defines in os-linux.h. The support for disabling it on a per-file
> basis isn't complete, but there are flags allocated in the inode
> structure to keep track of it.
Nice.
> > I have a truly perverse case I would like to ask your opinion about.
> > A filesystem composed of 2 8K erase blocks? That is one of the
> > weird special cases that flash chips often support. I could
> > only store my parameter file in there but it would be interesting.
>
> To be honest, at that size I'd just do it directly via /dev/mtd0. Put
> the file directly on the flash with a checksum. Alternate between the
> eraseblocks each time it changes, then erase the old copy.
Right that would work, and I might do that. If could put a fs in
there I get some extensibility benefits. As well as being able to
write a couple copies of my small file before I switch to the next
erase block. The extensibility is that other pieces of firmware
could have their own files of settings, decoupling things a little bit.
If I could get the degenerate case to work without needing gross hacks
jffs2 would have scaled down to a useful level.
Primarily I am interested in not reinventing if I can, and it looks
like that may be a possibility.
> > And a last question. jffs2 rounds all erase blocks up to a common size
> > doesn't it?
>
> Yes.
Thanks for information.
I'm not quite certain where I will go with this but it has made
where the trade offs pretty clear.
Eric
next prev parent reply other threads:[~2004-01-26 16:18 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-25 21:53 Q: Filesystem choice Eric W. Biederman
2004-01-25 22:49 ` Jörn Engel
2004-01-26 6:42 ` David Woodhouse
2004-01-26 7:09 ` Eric W. Biederman
2004-01-26 7:40 ` David Woodhouse
2004-01-26 8:34 ` Joakim Tjernlund
2004-01-26 8:38 ` David Woodhouse
2004-01-26 9:28 ` Joakim Tjernlund
2004-01-26 9:23 ` Eric W. Biederman
2004-01-26 9:31 ` David Woodhouse
2004-01-26 16:20 ` Eric W. Biederman [this message]
2004-01-26 15:32 ` Jörn Engel
2004-01-27 4:30 ` Charles Manning
2004-01-27 7:13 ` Eric W. Biederman
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=m3ektmbs23.fsf@maxwell.lnxi.com \
--to=ebiederman@lnxi.com \
--cc=dwmw2@infradead.org \
--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