From: Andreas Dilger <adilger@sun.com>
To: Theodore Tso <tytso@mit.edu>
Cc: Kalpak Shah <kalpak.shah@gmail.com>,
Kalpak Shah <Kalpak.Shah@sun.com>,
linux-ext4 <linux-ext4@vger.kernel.org>,
Mingming Cao <cmm@us.ibm.com>
Subject: Re: [PATCH 2/2] Large EAs
Date: Wed, 26 Nov 2008 14:49:29 -0700 [thread overview]
Message-ID: <20081126214929.GZ3186@webber.adilger.int> (raw)
In-Reply-To: <20081126065439.GA27490@mit.edu>
On Nov 26, 2008 01:54 -0500, Theodore Ts'o wrote:
> 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?
One benefit I think is that at least the orphaned EA inode can be
cleaned up instead of lingering in the middle of the shared EA tree.
The other issue is that I don't want to give up the e_hash field for
the EA, because that is a useful checksum of the EA contents.
Another benefit of having separate EAs is that it makes it tractable to
modify very large EAs. Otherwise, if there are a number of large
EAs shared in a single tree they would all have to be modified in order
to store a larger value for an EA in the middle of the tree.
To be honest, I don't think that it is worth a great deal of effort to
optimize this corner case. I would rather keep the EA structure simple,
and if running out of inodes is a problem we would be far better off to
have a much more widely useful solution like dynamic inode tables instead
of working around that limitation with complex EA code.
Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.
next prev parent reply other threads:[~2008-11-26 21:49 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
2008-11-26 21:49 ` Andreas Dilger [this message]
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=20081126214929.GZ3186@webber.adilger.int \
--to=adilger@sun.com \
--cc=Kalpak.Shah@sun.com \
--cc=cmm@us.ibm.com \
--cc=kalpak.shah@gmail.com \
--cc=linux-ext4@vger.kernel.org \
--cc=tytso@mit.edu \
/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).