All of lore.kernel.org
 help / color / mirror / Atom feed
From: viro@parcelfarce.linux.theplanet.co.uk
To: Shaya Potter <spotter@cs.columbia.edu>
Cc: linux-fsdevel@vger.kernel.org
Subject: Re: changing permission()/vfs_permission... to work on dentry
Date: Wed, 28 May 2003 22:48:22 +0100	[thread overview]
Message-ID: <20030528214822.GF14138@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <1054154587.9356.15.camel@zaphod>

On Wed, May 28, 2003 at 04:43:08PM -0400, Shaya Potter wrote:
> I've gone through the entire fs/* vfs layer picking out every use of
> permission to see if it can easily use the dentry instead, and it can
> (list below showing that the dentry is readily available in every vfs
> case)

Why not grep over the entire tree?  That would've immediately show
at least 6 cases when we do _not_ have a dentry; 2 of them rather
nasty (floppy_open() in floppy.c/floppy98.c).

The real question is what the hell would you _do_ with dentry?

1) It's worthless without vfsmount - alone it does *NOT* determine the
pathname.

2) assuming that you've somehow got both vfsmount and dentry (and thus
enough information to find the pathnam), what will you do with it?
Anything that requires ->i_sem on ancestors is not an option - quite
often they will be already locked.  Moreover, there is no warranty that
pathname won't change right under you - starting with the parent of
your dentry.

IOW, what's the real goal?

  reply	other threads:[~2003-05-28 21:35 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-28 20:43 changing permission()/vfs_permission... to work on dentry Shaya Potter
2003-05-28 21:48 ` viro [this message]
2003-05-28 22:34   ` Shaya Potter
2003-05-28 22:53     ` viro
2003-05-29  0:33       ` Shaya Potter
2003-05-29 12:25         ` Jan Hudec
2003-05-29 12:41           ` viro
2003-05-29 12:40         ` Lucas Correia Villa Real
  -- strict thread matches above, loose matches on Subject: below --
2003-05-29  0:55 viro
2003-05-29  4:20 ` Shaya Potter
2003-05-29  4:38   ` Chris Wright
2003-05-29  8:27     ` viro

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=20030528214822.GF14138@parcelfarce.linux.theplanet.co.uk \
    --to=viro@parcelfarce.linux.theplanet.co.uk \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=spotter@cs.columbia.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 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.