linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rob Landley <rob@landley.net>
To: Jeff Garzik <jgarzik@pobox.com>, Andreas Dilger <adilger@clusterfs.com>
Cc: Alex Tomas <bzzz@tmi.comex.ru>,
	linux-kernel@vger.kernel.org, ext2-devel@lists.sourceforge.net
Subject: Re: [RFC] file extents for EXT3
Date: Tue, 12 Aug 2003 05:33:58 -0400	[thread overview]
Message-ID: <200308120533.58020.rob@landley.net> (raw)
In-Reply-To: <3F37C2EB.5050503@pobox.com>

On Monday 11 August 2003 12:23, Jeff Garzik wrote:

> Of course, the other alternative is to rename ext3 to "linuxfs", add a
> "no journal at all" mode, and remove ext2.  But I prefer my "ext4"
> solution :)

Well, embedded developers probably like the smaller driver.  Of course they 
can always use minixfs. :)

Something I've wondered about for a while:

With the ability to place a journal on another block device, you could 
theoretically throw the journal on a 1 megabyte ramdisk, and more or less 
degrade ext3 to ext2 that way (as long as you made sure to fsck the heck out 
of it on the way back up each time).

Beyond that, why is the minimum journal size 1 megabyte?  (Having to waste a 
megabyte of ram on a 4 megabyte filesystem is kind of annoying.  And yes, 
buildroot on uclibc with busybox can give you quite a lot of functionality in 
4 megabytes)  In theory, if the journal could be crushed down small enough, 
then the ramdisk solution isn't so bad, although needing to compile in the 
ramdisk and set it up is a bit clumsy, better still if the journal code could 
just bounce the blocks off of a small internal ram buffer.  (Personally, I'll 
live with the redundant in-memory copies; still faster than the disk by a 
long shot.)

Beyond THAT, ext2 could be considered ext3 with a "no journal" flag 
(automatically supplied when the mount is read only, for example).  Last time 
I did an embedded device, I had to stick both ext3 in (for the runtime data 
partition) and ext2 in (for the initrd that loopback mounted the firmware 
image, which was a zisofs containing the root partition).  Initramfs 
addresses this particular annoyance, but still leaves a problem creating a 
bootable CD that's going to install to ext3...

Having to compile two filesystems into the kernel with basically the same 
on-disk layout is kind of annoying, but ext3 simply isn't a good fit for a 
small ramdisk or for read-only media.

I realise that ext3 was kept separate from ext2 because ext2 should be 
uber-stable, but the argument there is that people who care about keeping 
their writeable data safe are intentionally not using journaling.  (Meanwhile 
we're completely redoing the block layer underneath them, and both the SCSI 
and IDE subsystems, and raid, but all those are obviously FAR less likely to 
do strange things to their data behind their back than the filesystem is... 
:)

Oh well.  Too late to worry about it for 2.6 anyway... :)

Rob



  reply	other threads:[~2003-08-12  9:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-11  7:41 [RFC] file extents for EXT3 Alex Tomas
2003-08-11 12:53 ` Jeff Garzik
2003-08-11 15:55   ` Andreas Dilger
2003-08-11 16:23     ` Jeff Garzik
2003-08-12  9:33       ` Rob Landley [this message]
2003-08-12 15:14         ` Andreas Dilger
2003-08-12 21:09           ` Rob Landley
2003-08-13  4:32       ` [Ext2-devel] " Theodore Ts'o
2003-08-14 16:41         ` James Antill
2003-08-11 16:43   ` Randy.Dunlap

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=200308120533.58020.rob@landley.net \
    --to=rob@landley.net \
    --cc=adilger@clusterfs.com \
    --cc=bzzz@tmi.comex.ru \
    --cc=ext2-devel@lists.sourceforge.net \
    --cc=jgarzik@pobox.com \
    --cc=linux-kernel@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).