From: Edward Shishkin <edward.shishkin@gmail.com>
To: Daniel Horne <daniel.horne@gmail.com>
Cc: Reiserfs mailing list <reiserfs-devel@vger.kernel.org>
Subject: Re: [Fwd: [Fwd: Re: Xattrs in reiser4 and Google Summer of Code]]
Date: Thu, 18 Dec 2008 02:18:19 +0300 [thread overview]
Message-ID: <494988BB.4020908@gmail.com> (raw)
In-Reply-To: <be789c640812171351k7e2dee9cg50a3803caca231d8@mail.gmail.com>
Daniel Horne wrote:
> Hi..
Hello,
Let's cc the list for technical talks, ok?
>
> Thanks for this. I had a brief look at the stat-data plugin, but I
> suspect it's not *quite* general enough to implement the full range of
> xattrs. In particular, you mention below that a stat-data item must be
> under 4000 bytes, and that each stat-data plugin should have its own
> behaviour written for it for reiser4tools.
>
I wanted something like a review to estimate a high boundary for total
amount
of space that can be occupied by pairs (key: value) in one file for
efficient work
of important xattrs applications like Selinux.
> With Xattrs you can pretty much set arbitrary key:value pairs, which
> means that writing a stat-data plugin for each of the possible xattr
> keys is completely impractical.
We don't need a separate stat-data plugin for _each_ possible xattr key:
The common sd-plugin that can scan nodes in order to gather scattered
stat-data of arbitrary length will cover _all_ cases.
> Also, it means that the if expressed as a list, the possible length of
> the xattrs on an inode are potentially a lot longer than 4000.
Can you say more about this?
Do you know an application that requires xattrs of length longer then
4000 bytes?
>
> So, the temptation is to have something similar to the file plugin for
> individual xattrs, with the xattr functions on a vfs file acting like
> a directory of xattr-files. There'd be a large number of small objects
> in the tree, of course, but that's a situation I understand R4 handles
> well..
>
> So, what do you think?
Let's forget about file-as-dir stuff. All what we need is a new file plugin
with non-NULL methods, responsible for work with xattrs , and (maybe)
a new stat-data plugin, which can handle stat-data items of arbitrary
length.
Thanks,
Edward.
next parent reply other threads:[~2008-12-17 23:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4943B62E.40706@gmail.com>
[not found] ` <be789c640812171351k7e2dee9cg50a3803caca231d8@mail.gmail.com>
2008-12-17 23:18 ` Edward Shishkin [this message]
2008-12-18 9:53 ` [Fwd: [Fwd: Re: Xattrs in reiser4 and Google Summer of Code]] Daniel Horne
2008-12-21 13:41 ` Xattrs in reiser4 Edward Shishkin
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=494988BB.4020908@gmail.com \
--to=edward.shishkin@gmail.com \
--cc=daniel.horne@gmail.com \
--cc=reiserfs-devel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.