From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: Luca Barbieri <ldb@ldb.ods.org>
Cc: Linux FSdevel <linux-fsdevel@vger.kernel.org>,
Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] Initial support for struct vfs_cred [0/1]
Date: Sun, 1 Sep 2002 21:40:32 +0200 [thread overview]
Message-ID: <15730.27952.29723.552617@charged.uio.no> (raw)
In-Reply-To: <1030906488.2145.104.camel@ldb>
>>>>> " " == Luca Barbieri <ldb@ldb.ods.org> writes:
> And, in the common case of open, why do you need to copy the
> structure to check permissions? I think that open should just
> check the current values. open might want to copy credentials
Because, as has been explained to you, we have things like Coda,
Intermezzo, NFS, for which this is insufficient.
> in case you want to do the inode lookup asynchronously but then
> it doesn't make sense to optimize for this since you already
> have the huge disk read penalty. BTW, the 2.5.32 open does the
> check in vfs_permission without copying anything. Anyway it's
> just a 3 long copy plus an atomic inc vs. 1 long copy and
> atomic inc. And if you don't need the groups array, it's just
> a 2 longs copy that on some architectures with very slow atomic
> operations (e.g. sparc) is much better.
But we we do need to check the groups array in the VFS. And as Linus
pointed out, there is a good case for passing info from the
user_struct too (crypto), etc...
Cheers,
Trond
next prev parent reply other threads:[~2002-09-01 19:36 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-31 16:32 Trond Myklebust
2002-08-31 18:57 ` Luca Barbieri
2002-08-31 19:36 ` Linus Torvalds
2002-08-31 19:38 ` Luca Barbieri
2002-08-31 22:30 ` Trond Myklebust
2002-08-31 23:13 ` Luca Barbieri
2002-09-01 13:03 ` Trond Myklebust
2002-09-01 14:10 ` Trond Myklebust
2002-09-01 14:20 ` Luca Barbieri
2002-09-01 16:40 ` Trond Myklebust
2002-09-01 18:54 ` Luca Barbieri
2002-09-01 19:40 ` Trond Myklebust [this message]
2002-09-01 21:34 ` Luca Barbieri
2002-09-01 21:56 ` Trond Myklebust
2002-09-01 22:50 ` Luca Barbieri
[not found] ` <20020903034607.GF29452@ravel.coda.cs.cmu.edu>
2002-09-08 22:04 ` Luca Barbieri
2002-09-09 6:22 ` Jan Harkes
2002-09-09 11:17 ` Luca Barbieri
2002-09-01 14:33 ` Luca Barbieri
2002-09-01 16:38 ` Trond Myklebust
2002-09-01 18:42 ` Luca Barbieri
2002-09-01 19:25 ` Trond Myklebust
2002-09-01 21:36 ` Luca Barbieri
2002-09-01 15:15 ` Daniel Phillips
2002-09-01 15:35 ` Luca Barbieri
2002-08-31 19:51 ` Luca Barbieri
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=15730.27952.29723.552617@charged.uio.no \
--to=trond.myklebust@fys.uio.no \
--cc=ldb@ldb.ods.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®