From: tytso@mit.edu
To: Manish Katiyar <mkatiyar@gmail.com>
Cc: "Anonymous Remailer (austria)" <mixmaster@remailer.privacy.at>,
linux-ext4@vger.kernel.org
Subject: Re: ext5
Date: Wed, 10 Feb 2010 23:30:29 -0500 [thread overview]
Message-ID: <20100211043029.GE739@thunk.org> (raw)
In-Reply-To: <ea11fea31002101938y7bd5d6f4u5f7cdda972ea72e2@mail.gmail.com>
On Thu, Feb 11, 2010 at 09:08:36AM +0530, Manish Katiyar wrote:
>
> Is this design somewhere on net so that we can read/lookup it up ?
Not yet, but the basic idea is to do the compression in userspace,
using libz with regular resync points every 64k or 128k of
uncompressed data. An array, indexed by each fixed-block of
uncompressed data, is located at the beginning of the file indicating
where each compressed block begins. The file is stored on-disk
written by the installer in a compressed format, and then the
installer flips an attribute bit which marks the file as containing
compressed data, and which also makes the file immutable. (Any
attempt to open the file read/write will result in an error.)
The advantage of this scheme is that it minimizes in-kernel
complexity, since the kernel doesn't have to deal with compressing
data, and it means we can use a simpler format which is more efficient
from a compression standpoint since we don't have to deal with random
access writes.
Another advantage of this scheme is that it's relatively easy to do
the bulk of the work in a file system-independent layer. Some minor
work would be needed to interface the attribute bit and the mmap
reading function into each client filesystem, but it should be
possible to isolate 95% of the work into a filesystem independent
layer, and then make this something which multiple file systems could
take advantage of --- not just ext3 and ext4, but also xfs, btrfs,
etc.
- Ted
next prev parent reply other threads:[~2010-02-11 4:30 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-09 23:40 ext5 Anonymous Remailer (austria)
2010-02-10 21:50 ` ext5 tytso
2010-02-11 3:38 ` ext5 Manish Katiyar
2010-02-11 4:30 ` tytso [this message]
2010-02-11 17:55 ` ext5 Jan Kara
2010-02-11 19:31 ` ext5 tytso
2010-02-11 5:18 ` ext5 Ron Johnson
2010-02-11 6:44 ` ext5 tytso
2010-02-11 16:49 ` ext5 Ron Johnson
2010-02-11 21:41 ` ext5 Goswin von Brederlow
2010-02-12 4:47 ` ext5 Ron Johnson
2010-02-12 16:02 ` ext5 tytso
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=20100211043029.GE739@thunk.org \
--to=tytso@mit.edu \
--cc=linux-ext4@vger.kernel.org \
--cc=mixmaster@remailer.privacy.at \
--cc=mkatiyar@gmail.com \
/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).