From: Andreas Dilger <adilger@sun.com>
To: lustre-devel@lists.lustre.org
Subject: [Lustre-devel] Re-direction inodes
Date: Mon, 02 Jun 2008 11:09:37 -0600 [thread overview]
Message-ID: <20080602170937.GI2961@webber.adilger.int> (raw)
In-Reply-To: <C4696703.566A%peter.braam@sun.com>
On Jun 02, 2008 08:59 +0900, Peter J. Braam wrote:
> I have a need in doing an architecture for a customer of a Lustre client
> feature to have different data/page caches associated with an inode,
> depending on the user that accesses it. So when a file is read, user A
> will read different data from user B (assume the same for writes, but I
> think this is a read-only feature).
Initially when I read this, I thought you were only trying to keep the
client-side cache separate, which could be done by adding the UID into
the inode lookup function for ll_test_inode() and treating these files
separately in the client-side cache. That would be useful to avoid e.g.
user A reading "securefile" into memory, and user B being able to access
it from cache due to client-local access permissions allowing it.
> I remember that in the Coda file system we could easily re-direct I/O to
> another inode using almost standard features in the VFS/page caches. Is
> this still the case? Would this work for the purpose I describe above?
On later reading, it seems you want to have completely independent
file contents for each user, but they share the same pathname. In some
filesystems it is possible to encode part of the pathname somewhat like:
/home///$UID///file
but I think you are proposing a completely transparent mapping of content:
alice> cat /etc/passwd
alice:x:1000:1000:Alice:/home/alice:/bin/bash
bob> cat /etc/passwd
bob:x:1001:1001:Bob:/home/bob:/bin/bash
correct?
Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.
next prev parent reply other threads:[~2008-06-02 17:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-01 23:59 [Lustre-devel] Re-direction inodes Peter Braam
2008-06-02 11:11 ` Nikita Danilov
2008-06-02 12:07 ` Peter Braam
2008-06-02 17:09 ` Andreas Dilger [this message]
2008-06-04 1:17 ` Peter Braam
2008-06-04 9:11 ` Daire Byrne
2008-06-06 14:25 ` Canon, Richard Shane
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=20080602170937.GI2961@webber.adilger.int \
--to=adilger@sun.com \
--cc=lustre-devel@lists.lustre.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.