From: Theodore Tso <tytso@mit.edu>
To: Kalpak Shah <Kalpak.Shah@Sun.COM>
Cc: 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: Tue, 25 Nov 2008 23:41:38 -0500 [thread overview]
Message-ID: <20081126044138.GD1410@mit.edu> (raw)
In-Reply-To: <1226954173.3972.70.camel@localhost>
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; what if we make use
e_value_block and e_hash to be a 64-bit block number, and use
e_value_offs (if 0) to indicate whether the 64-bit block number
contains data, or (if 1) contains the root of an extent tree. This
adds a bit of complexity to the hash calculation if we want to support
sharing the EA block that contains pointers to Large EA's, but from
what I can tell the proposed patch doesn't support this anyway (and it
seems highly unlikely that multiple files with large EA's could be
able to be shared anyway).
The upsides of this patch (not needing to use inodes) seems to be
worth the downsides (slightly more complexity, and not being able to
share EA blocks).
What do folks think?
- Ted
next prev parent reply other threads:[~2008-11-26 4:41 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 [this message]
2008-11-26 6:00 ` Kalpak Shah
2008-11-26 6:54 ` Theodore Tso
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=20081126044138.GD1410@mit.edu \
--to=tytso@mit.edu \
--cc=Kalpak.Shah@Sun.COM \
--cc=adilger@Sun.COM \
--cc=cmm@us.ibm.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).