From: Theodore Tso <tytso@mit.edu>
To: Kalpak Shah <kalpak.shah@gmail.com>
Cc: Kalpak Shah <Kalpak.Shah@sun.com>,
linux-ext4 <linux-ext4@vger.kernel.org>,
Mingming Cao <cmm@us.ibm.com>, Andreas Dilger <adilger@sun.com>
Subject: Re: [PATCH 2/2] Large EAs
Date: Wed, 26 Nov 2008 01:54:39 -0500 [thread overview]
Message-ID: <20081126065439.GA27490@mit.edu> (raw)
In-Reply-To: <460220570811252200t5d9e4aaax95f73843b8f3e482@mail.gmail.com>
On Wed, Nov 26, 2008 at 11:30:32AM +0530, Kalpak Shah wrote:
> On Wed, Nov 26, 2008 at 10:11 AM, Theodore Tso <tytso@mit.edu> wrote:
> > Sorry for not reviewing this patch earlier, but looking at the disk
> > format, I wonder if it's really necessary to allocate an inode for
> > each EA. Given that we have a fixed inode table, if the user creates
> > a large number of 2k EA's (on a 4k filesystem) or 512 byte EA's (on a
> > 1k) filesystem, this could easily burn a huge number of inodes,
> > causing users to run out.
> >
> > We don't actually *need* to use an inode;
>
> One of the reasons we need to use an inode is that orphan EA inodes
> can be linked into lost+found. If we just use an extent tree, I am not
> sure how e2fsck can find out orphan EAs.
It's already the case that if we have an orphaned EA block, we'll lose
it. The question is whether it's important to keep a large EA if it
gets orphaned, especially given that there are already plenty ways
that we can lose EA's (i.e., ftp, tar, NFSv3, etc.). So if someone is
going to store a multi-megabyte EA, and we lose it because the inode
it was attached to gets destroyed, or the inode gets corrupted to the
point where we can't find the root of the EA tree --- the question is
--- will we care? It's similar to losing the high-level node in the
EA tree, we lose all the leaf nodes below it. It can happen, but in
that case the user will just have to restore the entire file from
backup. I'd argue that losing the EA tree would be the same sort of
thing.
I can see the argument on the other side, where if someone attaches a
multi-megabyte EA to a file, that it might be important enough to be
worth saving. OTOH I'm not at all sure we would want to encourage
such a thing!
- Ted
next prev parent reply other threads:[~2008-11-26 6:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-17 20:36 [PATCH 2/2] Large EAs Kalpak Shah
2008-11-26 4:41 ` Theodore Tso
2008-11-26 6:00 ` Kalpak Shah
2008-11-26 6:54 ` Theodore Tso [this message]
2008-11-26 21:49 ` Andreas Dilger
2008-11-27 0:35 ` Theodore Tso
2008-11-27 9:27 ` Andreas Dilger
2008-12-03 10:38 ` Kalpak Shah
2008-12-17 6:10 ` Kalpak Shah
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=20081126065439.GA27490@mit.edu \
--to=tytso@mit.edu \
--cc=Kalpak.Shah@sun.com \
--cc=adilger@sun.com \
--cc=cmm@us.ibm.com \
--cc=kalpak.shah@gmail.com \
--cc=linux-ext4@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).